home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Technical Documentation / Mac Tech Notes (DocViewer) / Networking / NW13-AppleTalk The Rest… < prev    next >
MacBinary  |  1994-04-27  |  531.8 KB  |  [ONLN/HLX2]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue Apr 19 11:14:04 1994, modified Wed Apr 27 06:14:20 1994, creator 'HLX2', type 'ONLN', 530912 bytes "NW13-AppleTalk The Rest�" , at 0x81a60 13437 bytes resource default (weak)
99% file data default
100% TrID MacBinary 2 default (weak)
100% dexmagic Picasso 64 Image default (weak)
100% siegfried fmt/1762 MacBinary (II) default
2% lsar MacBinary default (weak)


id metadata
keyvalue
macFileType[ONLN]
macFileCreator[HLX2]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 4e 57 31 33 2d 41 | 70 70 6c 65 54 61 6c 6b |..NW13-A|ppleTalk|
|00000010| 20 54 68 65 20 52 65 73 | 74 c9 00 00 00 00 00 00 | The Res|t.......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......|
|00000050| 00 00 00 00 08 19 e0 00 | 00 34 7d a9 d9 a5 bc a9 |........|.4}.....|
|00000060| e3 eb 7c 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..|.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 7c 6c 00 00 |........|....|l..|
|00000080| 4e 57 20 31 33 20 2d 20 | 41 70 70 6c 65 54 61 6c |NW 13 - |AppleTal|
|00000090| 6b 3a 20 54 68 65 20 52 | 65 73 74 20 6f 66 20 74 |k: The R|est of t|
|000000a0| 68 65 20 53 74 6f 72 79 | 0d 4e 65 74 77 6f 72 6b |he Story|.Network|
|000000b0| 69 6e 67 09 4d 2e 4e 57 | 2e 41 70 70 6c 65 54 61 |ing.M.NW|.AppleTa|
|000000c0| 6c 6b 32 0d 55 70 64 61 | 74 65 64 20 62 79 3a 09 |lk2.Upda|ted by:.|
|000000d0| 52 69 63 68 20 4b 75 62 | 6f 74 61 09 4d 61 72 63 |Rich Kub|ota.Marc|
|000000e0| 68 20 31 39 39 34 0d 57 | 72 69 74 74 65 6e 20 62 |h 1994.W|ritten b|
|000000f0| 79 3a 09 52 69 63 68 20 | 4b 75 62 6f 74 61 20 61 |y:.Rich |Kubota a|
|00000100| 6e 64 20 53 63 6f 74 74 | 20 4b 75 65 63 68 6c 65 |nd Scott| Kuechle|
|00000110| 09 46 65 62 72 75 61 72 | 79 20 31 39 39 32 0d 54 |.Februar|y 1992.T|
|00000120| 68 69 73 20 54 65 63 68 | 6e 69 63 61 6c 20 4e 6f |his Tech|nical No|
|00000130| 74 65 20 64 69 73 63 75 | 73 73 65 73 20 74 68 65 |te discu|sses the|
|00000140| 20 75 70 64 61 74 65 73 | 2c 20 61 6e 64 20 6d 6f | updates|, and mo|
|00000150| 64 69 66 69 63 61 74 69 | 6f 6e 73 20 74 6f 20 61 |dificati|ons to a|
|00000160| 20 6e 75 6d 62 65 72 20 | 6f 66 20 66 61 63 65 74 | number |of facet|
|00000170| 73 20 6f 66 20 74 68 65 | 20 6c 6f 77 65 72 20 6c |s of the| lower l|
|00000180| 65 76 65 6c 73 20 6f 66 | 20 41 70 70 6c 65 54 61 |evels of| AppleTa|
|00000190| 6c 6b 20 50 68 61 73 65 | 20 32 20 73 69 6e 63 65 |lk Phase| 2 since|
|000001a0| 20 74 68 65 20 72 65 6c | 65 61 73 65 20 6f 66 20 | the rel|ease of |
|000001b0| 49 6e 73 69 64 65 20 4d | 61 63 69 6e 74 6f 73 68 |Inside M|acintosh|
|000001c0| 20 56 6f 6c 75 6d 65 20 | 56 49 2e 20 54 6f 70 69 | Volume |VI. Topi|
|000001d0| 63 73 20 72 61 6e 67 65 | 20 66 72 6f 6d 20 64 69 |cs range| from di|
|000001e0| 73 63 75 73 73 69 6f 6e | 20 6f 66 20 74 68 65 20 |scussion| of the |
|000001f0| 6e 65 77 20 44 61 74 61 | 67 72 61 6d 20 44 65 6c |new Data|gram Del|
|00000200| 69 76 65 72 79 20 50 72 | 6f 74 6f 63 6f 6c 20 28 |ivery Pr|otocol (|
|00000210| 44 44 50 29 20 6c 61 79 | 65 72 20 63 61 6c 6c 73 |DDP) lay|er calls|
|00000220| 20 74 6f 20 74 68 65 20 | 41 70 70 6c 65 54 61 6c | to the |AppleTal|
|00000230| 6b 20 4d 75 6c 74 69 70 | 6c 65 20 4e 6f 64 65 20 |k Multip|le Node |
|00000240| 41 72 63 68 69 74 65 63 | 74 75 72 65 20 74 6f 20 |Architec|ture to |
|00000250| 61 20 64 69 73 63 75 73 | 73 69 6f 6e 20 61 74 20 |a discus|sion at |
|00000260| 74 68 65 20 64 72 69 76 | 65 72 20 6c 65 76 65 6c |the driv|er level|
|00000270| 20 6f 66 20 74 68 65 20 | 6e 65 77 20 4d 75 6c 74 | of the |new Mult|
|00000280| 69 76 65 6e 64 6f 72 20 | 41 44 45 56 20 41 72 63 |ivendor |ADEV Arc|
|00000290| 68 69 74 65 63 74 75 72 | 65 2e 20 4d 6f 73 74 20 |hitectur|e. Most |
|000002a0| 6f 66 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |of the i|nformati|
|000002b0| 6f 6e 20 70 72 65 73 65 | 6e 74 65 64 20 68 65 72 |on prese|nted her|
|000002c0| 65 20 63 6f 6e 63 65 72 | 6e 73 20 41 70 70 6c 65 |e concer|ns Apple|
|000002d0| 54 61 6c 6b 20 76 65 72 | 73 69 6f 6e 20 35 36 20 |Talk ver|sion 56 |
|000002e0| 74 68 72 6f 75 67 68 20 | 35 38 3b 20 68 6f 77 65 |through |58; howe|
|000002f0| 76 65 72 2c 20 61 64 64 | 69 74 69 6f 6e 61 6c 20 |ver, add|itional |
|00000300| 6d 61 74 65 72 69 61 6c | 20 69 73 20 70 72 65 73 |material| is pres|
|00000310| 65 6e 74 65 64 20 74 6f | 20 63 6c 61 72 69 66 79 |ented to| clarify|
|00000320| 20 61 6e 64 20 63 6f 72 | 72 65 63 74 20 6d 61 74 | and cor|rect mat|
|00000330| 65 72 69 61 6c 20 70 72 | 65 73 65 6e 74 65 64 20 |erial pr|esented |
|00000340| 69 6e 20 6f 74 68 65 72 | 20 41 70 70 6c 65 54 61 |in other| AppleTa|
|00000350| 6c 6b 20 64 6f 63 75 6d | 65 6e 74 61 74 69 6f 6e |lk docum|entation|
|00000360| 20 72 65 6c 61 74 69 6e | 67 20 74 6f 20 61 6c 6c | relatin|g to all|
|00000370| 20 76 65 72 73 69 6f 6e | 73 20 6f 66 20 41 70 70 | version|s of App|
|00000380| 6c 65 54 61 6c 6b 2e 0d | 52 65 6f 72 64 65 72 65 |leTalk..|Reordere|
|00000390| 64 20 73 75 62 6a 65 63 | 74 73 20 61 63 63 6f 72 |d subjec|ts accor|
|000003a0| 64 69 6e 67 20 74 6f 20 | 74 68 65 20 6f 72 64 65 |ding to |the orde|
|000003b0| 72 20 6f 66 20 74 68 65 | 20 41 70 70 6c 65 54 61 |r of the| AppleTa|
|000003c0| 6c 6b 20 76 65 72 73 69 | 6f 6e 20 69 6e 20 77 68 |lk versi|on in wh|
|000003d0| 69 63 68 20 74 68 65 20 | 66 65 61 74 75 72 65 20 |ich the |feature |
|000003e0| 77 61 73 20 66 69 72 73 | 74 20 69 6d 70 6c 65 6d |was firs|t implem|
|000003f0| 65 6e 74 65 64 2e 20 41 | 64 64 65 64 20 61 20 74 |ented. A|dded a t|
|00000400| 61 62 6c 65 20 6f 66 20 | 63 6f 6e 74 65 6e 74 73 |able of |contents|
|00000410| 20 74 6f 20 6d 61 6b 65 | 20 69 74 20 65 61 73 69 | to make| it easi|
|00000420| 65 72 20 74 6f 20 66 69 | 6e 64 20 6d 61 74 65 72 |er to fi|nd mater|
|00000430| 69 61 6c 2e 20 41 64 64 | 65 64 20 61 20 64 69 73 |ial. Add|ed a dis|
|00000440| 63 75 73 73 69 6f 6e 20 | 6f 6e 20 4d 75 6c 74 69 |cussion |on Multi|
|00000450| 76 65 6e 64 6f 72 20 41 | 44 45 56 20 41 72 63 68 |vendor A|DEV Arch|
|00000460| 69 74 65 63 74 75 72 65 | 2c 20 74 68 65 20 2e 54 |itecture|, the .T|
|00000470| 4f 4b 4e 20 64 72 69 76 | 65 72 20 69 6e 74 65 72 |OKN driv|er inter|
|00000480| 66 61 63 65 2c 20 70 6c | 75 73 20 69 6e 66 6f 72 |face, pl|us infor|
|00000490| 6d 61 74 69 6f 6e 20 6f | 6e 20 6d 61 6b 69 6e 67 |mation o|n making|
|000004a0| 20 41 70 70 6c 65 54 61 | 6c 6b 20 64 72 69 76 65 | AppleTa|lk drive|
|000004b0| 72 73 20 63 6f 6d 70 61 | 74 69 62 6c 65 20 77 69 |rs compa|tible wi|
|000004c0| 74 68 20 76 69 72 74 75 | 61 6c 20 6d 65 6d 6f 72 |th virtu|al memor|
|000004d0| 79 20 75 6e 64 65 72 20 | 73 79 73 74 65 6d 20 73 |y under |system s|
|000004e0| 6f 66 74 77 61 72 65 20 | 76 65 72 73 69 6f 6e 20 |oftware |version |
|000004f0| 37 2e 30 2e 78 2e 20 41 | 64 64 65 64 20 61 20 64 |7.0.x. A|dded a d|
|00000500| 65 73 63 72 69 70 74 69 | 6f 6e 20 6f 66 20 74 68 |escripti|on of th|
|00000510| 65 20 63 68 61 6e 67 65 | 20 74 6f 20 74 68 65 20 |e change| to the |
|00000520| 2e 45 4e 45 54 20 69 6e | 74 65 72 66 61 63 65 20 |.ENET in|terface |
|00000530| 70 72 65 73 65 6e 74 65 | 64 20 62 79 20 74 68 65 |presente|d by the|
|00000540| 20 41 70 70 6c 65 20 53 | 4f 4e 49 43 20 62 61 73 | Apple S|ONIC bas|
|00000550| 65 64 20 45 74 68 65 72 | 6e 65 74 20 64 72 69 76 |ed Ether|net driv|
|00000560| 65 72 73 2e 20 41 64 64 | 65 64 20 73 6f 63 6b 65 |ers. Add|ed socke|
|00000570| 74 20 6c 69 73 74 65 6e | 65 72 20 73 61 6d 70 6c |t listen|er sampl|
|00000580| 65 20 63 6f 64 65 20 70 | 6c 75 73 20 63 6f 72 72 |e code p|lus corr|
|00000590| 65 63 74 69 6f 6e 73 20 | 74 6f 20 74 68 65 20 6f |ections |to the o|
|000005a0| 72 69 67 69 6e 61 6c 20 | 73 61 6d 70 6c 65 20 73 |riginal |sample s|
|000005b0| 6f 63 6b 65 74 20 6c 69 | 73 74 65 6e 65 72 2e 20 |ocket li|stener. |
|000005c0| 20 41 64 64 65 64 20 41 | 70 70 6c 65 54 61 6c 6b | Added A|ppleTalk|
|000005d0| 20 76 65 72 73 69 6f 6e | 20 6c 69 73 74 2e 0d 43 | version| list..C|
|000005e0| 68 61 6e 67 65 73 20 61 | 73 20 6f 66 20 46 65 62 |hanges a|s of Feb|
|000005f0| 72 75 61 72 79 20 31 39 | 39 34 3a 20 50 72 6f 76 |ruary 19|94: Prov|
|00000600| 69 64 65 20 6c 69 73 74 | 20 6f 66 20 6f 72 69 67 |ide list| of orig|
|00000610| 69 6e 61 6c 20 41 70 70 | 6c 65 54 61 6c 6b 20 4d |inal App|leTalk M|
|00000620| 61 6e 61 67 65 72 20 72 | 6f 75 74 69 6e 65 73 20 |anager r|outines |
|00000630| 77 68 69 63 68 20 77 69 | 6c 6c 20 61 72 65 20 4e |which wi|ll are N|
|00000640| 4f 54 20 62 65 69 6e 67 | 20 70 6f 72 74 65 64 20 |OT being| ported |
|00000650| 74 6f 20 74 68 65 20 50 | 6f 77 65 72 50 43 20 70 |to the P|owerPC p|
|00000660| 6c 61 74 66 6f 72 6d 2e | 20 20 43 6f 72 72 65 63 |latform.| Correc|
|00000670| 74 65 64 20 74 68 65 20 | 4d 75 6c 74 69 6e 6f 64 |ted the |Multinod|
|00000680| 65 20 50 72 6f 74 6f 63 | 6f 6c 20 67 6c 75 65 20 |e Protoc|ol glue |
|00000690| 74 6f 20 72 65 66 6c 65 | 63 74 20 74 68 61 74 20 |to refle|ct that |
|000006a0| 74 68 65 20 41 64 64 4e | 6f 64 65 20 63 61 6c 6c |the AddN|ode call|
|000006b0| 20 6d 75 73 74 20 62 65 | 20 6d 61 64 65 20 61 73 | must be| made as|
|000006c0| 20 61 20 73 79 6e 63 68 | 72 6f 6e 6f 75 73 20 69 | a synch|ronous i|
|000006d0| 6d 6d 65 64 69 61 74 65 | 20 43 6f 6e 74 72 6f 6c |mmediate| Control|
|000006e0| 20 63 61 6c 6c 20 74 6f | 20 74 68 65 20 2e 4d 50 | call to| the .MP|
|000006f0| 50 20 64 72 69 76 65 72 | 2e 20 20 49 6e 63 6c 75 |P driver|. Inclu|
|00000700| 64 65 64 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ded info|rmation |
|00000710| 6f 6e 20 6d 61 6b 69 6e | 67 20 74 68 65 20 73 61 |on makin|g the sa|
|00000720| 6d 70 6c 65 20 73 6f 63 | 6b 65 74 20 6c 69 73 74 |mple soc|ket list|
|00000730| 65 6e 65 72 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |ener com|patible |
|00000740| 77 69 74 68 20 56 69 72 | 74 75 61 6c 20 4d 65 6d |with Vir|tual Mem|
|00000750| 6f 72 79 2e 20 20 41 64 | 64 65 64 20 6e 6f 74 65 |ory. Ad|ded note|
|00000760| 20 74 68 61 74 20 74 68 | 65 20 4c 41 50 41 64 64 | that th|e LAPAdd|
|00000770| 41 54 51 20 61 6e 64 20 | 4c 41 50 52 6d 76 41 54 |ATQ and |LAPRmvAT|
|00000780| 51 20 72 6f 75 74 69 6e | 65 73 20 68 61 76 65 20 |Q routin|es have |
|00000790| 62 65 65 6e 20 63 6f 72 | 72 65 63 74 65 64 20 69 |been cor|rected i|
|000007a0| 6e 20 74 68 65 20 49 6e | 74 65 72 66 61 63 65 2e |n the In|terface.|
|000007b0| 6f 20 6c 69 62 72 61 72 | 79 20 73 75 70 70 6c 69 |o librar|y suppli|
|000007c0| 65 64 20 77 69 74 68 20 | 4d 50 57 20 76 33 2e 33 |ed with |MPW v3.3|
|000007d0| 2e 20 20 41 64 64 65 64 | 20 69 6e 66 6f 72 6d 61 |. Added| informa|
|000007e0| 74 69 6f 6e 20 6f 6e 20 | 75 73 69 6e 67 20 74 68 |tion on |using th|
|000007f0| 65 20 2e 54 4f 4b 4e 20 | 61 6e 64 20 2e 46 44 44 |e .TOKN |and .FDD|
|00000800| 49 20 41 50 49 2e 20 20 | 4d 61 64 65 20 63 6f 72 |I API. |Made cor|
|00000810| 72 65 63 74 69 6f 6e 73 | 20 74 6f 20 73 6f 63 6b |rections| to sock|
|00000820| 65 74 20 6c 69 73 74 65 | 6e 65 72 20 63 6f 64 65 |et liste|ner code|
|00000830| 20 73 6f 20 74 68 61 74 | 20 74 68 65 20 43 68 65 | so that| the Che|
|00000840| 63 6b 73 75 6d 6d 69 6e | 67 20 66 65 61 74 75 72 |cksummin|g featur|
|00000850| 65 20 77 6f 72 6b 65 64 | 20 63 6f 72 72 65 63 74 |e worked| correct|
|00000860| 6c 79 2e 0d 43 68 61 6e | 67 65 73 20 61 73 20 6f |ly..Chan|ges as o|
|00000870| 66 20 4a 61 6e 75 61 72 | 79 20 31 39 39 33 3a 20 |f Januar|y 1993: |
|00000880| 43 6f 72 72 65 63 74 65 | 64 20 74 68 65 20 2e 54 |Correcte|d the .T|
|00000890| 4f 4b 4e 20 69 6e 74 65 | 72 66 61 63 65 20 74 6f |OKN inte|rface to|
|000008a0| 20 72 65 6d 6f 76 65 20 | 72 65 66 65 72 65 6e 63 | remove |referenc|
|000008b0| 65 20 74 6f 20 74 68 65 | 20 41 31 20 72 65 67 69 |e to the| A1 regi|
|000008c0| 73 74 65 72 20 6f 6e 20 | 70 61 63 6b 65 74 20 72 |ster on |packet r|
|000008d0| 65 63 65 70 74 69 6f 6e | 2e 20 44 65 73 63 72 69 |eception|. Descri|
|000008e0| 62 65 20 61 20 62 75 67 | 20 77 69 74 68 20 74 68 |be a bug| with th|
|000008f0| 65 20 4c 41 50 41 64 64 | 41 54 51 20 74 68 65 20 |e LAPAdd|ATQ the |
|00000900| 4c 41 50 52 6d 76 41 54 | 51 20 67 6c 75 65 20 63 |LAPRmvAT|Q glue c|
|00000910| 6f 64 65 20 77 68 69 63 | 68 20 65 78 69 73 74 73 |ode whic|h exists|
|00000920| 20 69 6e 20 74 68 65 20 | 4d 50 57 20 49 6e 74 65 | in the |MPW Inte|
|00000930| 72 66 61 63 65 2e 6f 20 | 6c 69 62 72 61 72 79 20 |rface.o |library |
|00000940| 66 69 6c 65 2c 20 61 6e | 64 20 70 75 62 6c 69 73 |file, an|d publis|
|00000950| 68 20 61 6e 20 41 73 73 | 65 6d 62 6c 65 72 20 67 |h an Ass|embler g|
|00000960| 6c 75 65 20 63 6f 64 65 | 20 66 69 6c 65 20 74 6f |lue code| file to|
|00000970| 20 77 6f 72 6b 20 61 72 | 6f 75 6e 64 20 74 68 65 | work ar|ound the|
|00000980| 20 70 72 6f 62 6c 65 6d | 2e 20 20 44 65 73 63 72 | problem|. Descr|
|00000990| 69 62 65 20 63 68 61 6e | 67 65 20 74 6f 20 74 68 |ibe chan|ge to th|
|000009a0| 65 20 2e 45 4e 45 54 20 | 45 47 65 74 49 6e 66 6f |e .ENET |EGetInfo|
|000009b0| 20 63 61 6c 6c 20 69 6e | 74 65 72 66 61 63 65 2e | call in|terface.|
|000009c0| 20 20 44 65 73 63 72 69 | 62 65 20 63 68 61 6e 67 | Descri|be chang|
|000009d0| 65 20 74 6f 20 74 68 65 | 20 27 61 74 6c 6b 27 20 |e to the| 'atlk' |
|000009e0| 41 47 65 74 49 6e 66 6f | 20 63 61 6c 6c 20 72 65 |AGetInfo| call re|
|000009f0| 71 75 69 72 65 64 20 6f | 66 20 41 44 45 56 27 73 |quired o|f ADEV's|
|00000a00| 20 74 6f 20 73 75 70 70 | 6f 72 74 20 53 4e 4d 50 | to supp|ort SNMP|
|00000a10| 20 28 53 69 6d 70 6c 65 | 20 4e 65 74 77 6f 72 6b | (Simple| Network|
|00000a20| 20 4d 61 6e 61 67 65 6d | 65 6e 74 20 50 72 6f 74 | Managem|ent Prot|
|00000a30| 6f 63 6f 6c 29 2e 20 44 | 69 73 63 75 73 73 20 6f |ocol). D|iscuss o|
|00000a40| 74 68 65 72 20 63 68 61 | 6e 67 65 73 20 72 65 71 |ther cha|nges req|
|00000a50| 75 69 72 65 64 20 66 6f | 72 20 2e 54 4f 4b 4e 20 |uired fo|r .TOKN |
|00000a60| 61 6e 64 20 2e 45 4e 45 | 54 20 73 75 70 70 6f 72 |and .ENE|T suppor|
|00000a70| 74 20 6f 66 20 53 4e 4d | 50 2e 20 50 72 6f 76 69 |t of SNM|P. Provi|
|00000a80| 64 65 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 63 6c |de addit|ional cl|
|00000a90| 61 72 69 66 69 63 61 74 | 69 6f 6e 20 74 6f 20 74 |arificat|ion to t|
|00000aa0| 68 65 20 4c 41 50 20 4d | 61 6e 61 67 65 72 20 63 |he LAP M|anager c|
|00000ab0| 61 6c 6c 73 2c 20 4c 52 | 64 44 69 73 70 61 74 63 |alls, LR|dDispatc|
|00000ac0| 68 2c 20 61 6e 64 20 4c | 57 72 74 49 6e 73 65 72 |h, and L|WrtInser|
|00000ad0| 74 2e 20 50 72 65 73 65 | 6e 74 20 63 6f 72 72 65 |t. Prese|nt corre|
|00000ae0| 63 74 69 6f 6e 20 74 6f | 20 74 68 65 20 45 4e 45 |ction to| the ENE|
|00000af0| 54 2e 68 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |T.h head|er file |
|00000b00| 73 75 70 70 6c 69 65 64 | 20 77 69 74 68 20 4d 50 |supplied| with MP|
|00000b10| 57 20 33 2e 32 2e 78 2e | 20 0d 49 6e 74 72 6f 64 |W 3.2.x.| .Introd|
|00000b20| 75 63 74 69 6f 6e 09 33 | 0d 57 68 65 72 65 20 43 |uction.3|.Where C|
|00000b30| 61 6e 20 49 20 47 65 74 | 20 74 68 65 20 4c 61 74 |an I Get| the Lat|
|00000b40| 65 73 74 20 56 65 72 73 | 69 6f 6e 20 6f 66 20 41 |est Vers|ion of A|
|00000b50| 70 70 6c 65 54 61 6c 6b | 3f 09 34 0d 47 6f 69 6e |ppleTalk|?.4.Goin|
|00000b60| 67 2c 20 47 6f 69 6e 67 | 2c 20 47 6f 6e 65 2e 2e |g, Going|, Gone..|
|00000b70| 2e 09 34 0d 54 68 65 20 | 27 61 74 6b 76 27 20 47 |..4.The |'atkv' G|
|00000b80| 65 73 74 61 6c 74 20 53 | 65 6c 65 63 74 6f 72 09 |estalt S|elector.|
|00000b90| 35 0d 53 61 6d 70 6c 65 | 20 53 6f 63 6b 65 74 20 |5.Sample| Socket |
|00000ba0| 4c 69 73 74 65 6e 65 72 | 09 36 0d 53 6f 63 6b 65 |Listener|.6.Socke|
|00000bb0| 74 20 4c 69 73 74 65 6e | 65 72 20 52 65 76 69 65 |t Listen|er Revie|
|00000bc0| 77 09 37 0d 54 69 6d 69 | 6e 67 20 43 6f 6e 73 69 |w.7.Timi|ng Consi|
|00000bd0| 64 65 72 61 74 69 6f 6e | 73 20 66 6f 72 20 4c 6f |deration|s for Lo|
|00000be0| 63 61 6c 54 61 6c 6b 09 | 37 0d 52 65 67 69 73 74 |calTalk.|7.Regist|
|00000bf0| 65 72 20 55 73 61 67 65 | 09 37 0d 53 6f 63 6b 65 |er Usage|.7.Socke|
|00000c00| 74 20 4c 69 73 74 65 6e | 65 72 20 4f 76 65 72 76 |t Listen|er Overv|
|00000c10| 69 65 77 09 38 0d 53 6f | 63 6b 65 74 20 4c 69 73 |iew.8.So|cket Lis|
|00000c20| 74 65 6e 65 72 20 41 73 | 73 65 6d 62 6c 65 72 20 |tener As|sembler |
|00000c30| 43 6f 64 65 09 39 0d 49 | 6e 69 74 69 61 6c 69 7a |Code.9.I|nitializ|
|00000c40| 69 6e 67 20 74 68 65 20 | 53 6f 63 6b 65 74 20 4c |ing the |Socket L|
|00000c50| 69 73 74 65 6e 65 72 09 | 31 34 0d 55 73 69 6e 67 |istener.|14.Using|
|00000c60| 20 74 68 65 20 53 6f 63 | 6b 65 74 20 4c 69 73 74 | the Soc|ket List|
|00000c70| 65 6e 65 72 09 31 37 0d | 54 68 65 20 41 70 70 6c |ener.17.|The Appl|
|00000c80| 65 54 61 6c 6b 20 54 72 | 61 6e 73 69 74 69 6f 6e |eTalk Tr|ansition|
|00000c90| 20 51 75 65 75 65 09 31 | 38 0d 42 75 67 20 77 69 | Queue.1|8.Bug wi|
|00000ca0| 74 68 20 4c 41 50 41 64 | 64 41 54 51 20 61 6e 64 |th LAPAd|dATQ and|
|00000cb0| 20 4c 41 50 52 6d 76 41 | 54 51 20 47 6c 75 65 20 | LAPRmvA|TQ Glue |
|00000cc0| 43 6f 64 65 09 31 39 0d | 43 61 6c 6c 69 6e 67 20 |Code.19.|Calling |
|00000cd0| 74 68 65 20 41 70 70 6c | 65 54 61 6c 6b 20 54 72 |the Appl|eTalk Tr|
|00000ce0| 61 6e 73 69 74 69 6f 6e | 20 51 75 65 75 65 09 32 |ansition| Queue.2|
|00000cf0| 31 0d 53 74 61 6e 64 61 | 72 64 20 41 70 70 6c 65 |1.Standa|rd Apple|
|00000d00| 54 61 6c 6b 20 54 72 61 | 6e 73 69 74 69 6f 6e 20 |Talk Tra|nsition |
|00000d10| 43 6f 6e 73 74 61 6e 74 | 73 09 32 31 0d 54 68 65 |Constant|s.21.The|
|00000d20| 20 46 6c 61 67 73 68 69 | 70 20 4e 61 6d 69 6e 67 | Flagshi|p Naming|
|00000d30| 20 53 65 72 76 69 63 65 | 09 32 32 0d 54 68 65 20 | Service|.22.The |
|00000d40| 41 54 54 72 61 6e 73 4e | 61 6d 65 43 68 61 6e 67 |ATTransN|ameChang|
|00000d50| 65 41 73 6b 54 61 73 6b | 20 54 72 61 6e 73 69 74 |eAskTask| Transit|
|00000d60| 69 6f 6e 09 32 32 0d 54 | 68 65 20 41 54 54 72 61 |ion.22.T|he ATTra|
|00000d70| 6e 73 4e 61 6d 65 43 68 | 61 6e 67 65 54 65 6c 6c |nsNameCh|angeTell|
|00000d80| 54 61 73 6b 20 54 72 61 | 6e 73 69 74 69 6f 6e 09 |Task Tra|nsition.|
|00000d90| 32 33 0d 54 68 65 20 41 | 54 54 72 61 6e 73 43 61 |23.The A|TTransCa|
|00000da0| 6e 63 65 6c 4e 61 6d 65 | 43 68 61 6e 67 65 20 54 |ncelName|Change T|
|00000db0| 72 61 6e 73 69 74 69 6f | 6e 09 32 33 0d 53 79 73 |ransitio|n.23.Sys|
|00000dc0| 74 65 6d 20 37 2e 30 20 | 53 68 61 72 69 6e 67 20 |tem 7.0 |Sharing |
|00000dd0| 53 65 74 75 70 20 63 64 | 65 76 20 2f 20 46 6c 61 |Setup cd|ev / Fla|
|00000de0| 67 73 68 69 70 20 4e 61 | 6d 69 6e 67 20 53 65 72 |gship Na|ming Ser|
|00000df0| 76 69 63 65 20 49 6e 74 | 65 72 61 63 74 69 6f 6e |vice Int|eraction|
|00000e00| 0d 41 70 70 6c 65 54 61 | 6c 6b 20 52 65 6d 6f 74 |.AppleTa|lk Remot|
|00000e10| 65 20 41 63 63 65 73 73 | 20 4e 65 74 77 6f 72 6b |e Access| Network|
|00000e20| 20 54 72 61 6e 73 69 74 | 69 6f 6e 20 45 76 65 6e | Transit|ion Even|
|00000e30| 74 09 32 34 0d 54 68 65 | 20 41 54 54 72 61 6e 73 |t.24.The| ATTrans|
|00000e40| 4e 65 74 77 6f 72 6b 54 | 72 61 6e 73 69 74 69 6f |NetworkT|ransitio|
|00000e50| 6e 20 54 72 61 6e 73 69 | 74 69 6f 6e 09 32 34 0d |n Transi|tion.24.|
|00000e60| 4e 65 74 77 6f 72 6b 20 | 54 72 61 6e 73 69 74 69 |Network |Transiti|
|00000e70| 6f 6e 20 45 76 65 6e 74 | 20 66 6f 72 20 41 70 70 |on Event| for App|
|00000e80| 6c 65 54 61 6c 6b 20 52 | 65 6d 6f 74 65 20 41 63 |leTalk R|emote Ac|
|00000e90| 63 65 73 73 09 32 35 0d | 43 61 62 6c 65 20 52 61 |cess.25.|Cable Ra|
|00000ea0| 6e 67 65 20 43 68 61 6e | 67 65 20 54 72 61 6e 73 |nge Chan|ge Trans|
|00000eb0| 69 74 69 6f 6e 20 45 76 | 65 6e 74 09 32 36 0d 54 |ition Ev|ent.26.T|
|00000ec0| 68 65 20 41 54 54 72 61 | 6e 73 43 61 62 6c 65 43 |he ATTra|nsCableC|
|00000ed0| 68 61 6e 67 65 20 54 72 | 61 6e 73 69 74 69 6f 6e |hange Tr|ansition|
|00000ee0| 09 32 36 0d 54 68 65 20 | 53 70 65 65 64 20 43 68 |.26.The |Speed Ch|
|00000ef0| 61 6e 67 65 20 54 72 61 | 6e 73 69 74 69 6f 6e 20 |ange Tra|nsition |
|00000f00| 45 76 65 6e 74 09 32 36 | 0d 54 68 65 20 41 54 54 |Event.26|.The ATT|
|00000f10| 72 61 6e 73 53 70 65 65 | 64 43 68 61 6e 67 65 20 |ransSpee|dChange |
|00000f20| 54 72 61 6e 73 69 74 69 | 6f 6e 09 32 37 0d 53 61 |Transiti|on.27.Sa|
|00000f30| 6d 70 6c 65 20 50 61 73 | 63 61 6c 20 53 6f 75 72 |mple Pas|cal Sour|
|00000f40| 63 65 20 74 6f 20 4c 41 | 50 4d 67 72 45 78 69 73 |ce to LA|PMgrExis|
|00000f50| 74 73 20 46 75 6e 63 74 | 69 6f 6e 09 32 37 0d 53 |ts Funct|ion.27.S|
|00000f60| 61 6d 70 6c 65 20 41 70 | 70 6c 65 54 61 6c 6b 20 |ample Ap|pleTalk |
|00000f70| 54 72 61 6e 73 69 74 69 | 6f 6e 20 51 75 65 75 65 |Transiti|on Queue|
|00000f80| 20 46 75 6e 63 74 69 6f | 6e 09 32 38 0d 53 61 6d | Functio|n.28.Sam|
|00000f90| 70 6c 65 20 41 70 70 6c | 65 54 61 6c 6b 20 54 72 |ple Appl|eTalk Tr|
|00000fa0| 61 6e 73 69 74 69 6f 6e | 20 51 75 65 75 65 20 46 |ansition| Queue F|
|00000fb0| 75 6e 63 74 69 6f 6e 20 | 69 6e 20 43 09 32 38 0d |unction |in C.28.|
|00000fc0| 53 61 6d 70 6c 65 20 41 | 70 70 6c 65 54 61 6c 6b |Sample A|ppleTalk|
|00000fd0| 20 54 72 61 6e 73 69 74 | 69 6f 6e 20 51 75 65 75 | Transit|ion Queu|
|00000fe0| 65 20 46 75 6e 63 74 69 | 6f 6e 20 69 6e 20 50 61 |e Functi|on in Pa|
|00000ff0| 73 63 61 6c 09 33 33 0d | 4d 75 6c 74 69 76 65 6e |scal.33.|Multiven|
|00001000| 64 6f 72 20 41 44 45 56 | 20 41 72 63 68 69 74 65 |dor ADEV| Archite|
|00001010| 63 74 75 72 65 09 33 39 | 0d 4f 72 69 67 69 6e 61 |cture.39|.Origina|
|00001020| 6c 20 4c 69 6d 69 74 61 | 74 69 6f 6e 73 09 33 39 |l Limita|tions.39|
|00001030| 0d 2e 54 4f 4b 4e 20 44 | 72 69 76 65 72 20 53 68 |..TOKN D|river Sh|
|00001040| 65 6c 6c 09 34 30 0d 2e | 54 4f 4b 4e 20 44 72 69 |ell.40..|TOKN Dri|
|00001050| 76 65 72 20 42 61 73 69 | 63 73 09 34 30 0d 44 72 |ver Basi|cs.40.Dr|
|00001060| 69 76 65 72 20 43 6f 6e | 73 69 64 65 72 61 74 69 |iver Con|siderati|
|00001070| 6f 6e 73 20 66 6f 72 20 | 56 69 72 74 75 61 6c 20 |ons for |Virtual |
|00001080| 4d 65 6d 6f 72 79 09 34 | 32 0d 4c 69 6d 69 74 69 |Memory.4|2.Limiti|
|00001090| 6e 67 20 44 65 66 65 72 | 55 73 65 72 46 6e 20 43 |ng Defer|UserFn C|
|000010a0| 61 6c 6c 73 09 34 33 0d | 49 6d 70 6c 65 6d 65 6e |alls.43.|Implemen|
|000010b0| 74 69 6e 67 20 44 65 66 | 65 72 55 73 65 72 46 6e |ting Def|erUserFn|
|000010c0| 09 34 33 0d 2e 54 4f 4b | 4e 20 41 70 70 6c 69 63 |.43..TOK|N Applic|
|000010d0| 61 74 69 6f 6e 20 50 72 | 6f 67 72 61 6d 6d 69 6e |ation Pr|ogrammin|
|000010e0| 67 20 49 6e 74 65 72 66 | 61 63 65 20 28 41 50 49 |g Interf|ace (API|
|000010f0| 29 09 34 34 0d 55 73 69 | 6e 67 20 4c 38 30 32 41 |).44.Usi|ng L802A|
|00001100| 74 74 61 63 68 20 6f 6e | 20 54 6f 6b 65 6e 20 52 |ttach on| Token R|
|00001110| 69 6e 67 09 34 34 0d 57 | 72 69 74 69 6e 67 20 74 |ing.44.W|riting t|
|00001120| 68 65 20 50 72 6f 74 6f | 63 6f 6c 20 48 61 6e 64 |he Proto|col Hand|
|00001130| 6c 65 72 20 66 6f 72 20 | 74 68 65 20 4c 41 50 20 |ler for |the LAP |
|00001140| 4d 61 6e 61 67 65 72 09 | 34 35 0d 2e 46 44 44 49 |Manager.|45..FDDI|
|00001150| 20 41 70 70 6c 69 63 61 | 74 69 6f 6e 20 50 72 6f | Applica|tion Pro|
|00001160| 67 72 61 6d 6d 69 6e 67 | 20 49 6e 74 65 72 66 61 |gramming| Interfa|
|00001170| 63 65 20 28 41 50 49 29 | 09 34 36 0d 53 4f 4e 49 |ce (API)|.46.SONI|
|00001180| 43 20 42 61 73 65 64 20 | 45 74 68 65 72 6e 65 74 |C Based |Ethernet|
|00001190| 20 44 72 69 76 65 72 20 | 53 6f 66 74 77 61 72 65 | Driver |Software|
|000011a0| 20 49 6e 74 65 72 66 61 | 63 65 20 43 68 61 6e 67 | Interfa|ce Chang|
|000011b0| 65 09 34 37 0d 45 47 65 | 74 49 6e 66 6f 20 43 68 |e.47.EGe|tInfo Ch|
|000011c0| 61 6e 67 65 73 09 34 37 | 0d 44 69 73 74 69 6e 67 |anges.47|.Disting|
|000011d0| 75 69 73 68 69 6e 67 20 | 41 70 70 6c 65 d5 73 20 |uishing |Apple.s |
|000011e0| 53 4f 4e 49 43 2d 42 61 | 73 65 64 20 45 74 68 65 |SONIC-Ba|sed Ethe|
|000011f0| 72 6e 65 74 20 53 79 73 | 74 65 6d 73 09 34 38 0d |rnet Sys|tems.48.|
|00001200| 43 6f 72 72 65 63 74 69 | 6f 6e 20 74 6f 20 74 68 |Correcti|on to th|
|00001210| 65 20 45 4e 45 54 2e 68 | 20 48 65 61 64 65 72 20 |e ENET.h| Header |
|00001220| 46 69 6c 65 09 34 38 0d | 41 70 70 6c 65 54 61 6c |File.48.|AppleTal|
|00001230| 6b 20 4d 75 6c 74 69 70 | 6c 65 20 4e 6f 64 65 20 |k Multip|le Node |
|00001240| 41 72 63 68 69 74 65 63 | 74 75 72 65 09 34 39 0d |Architec|ture.49.|
|00001250| 57 68 61 74 20 49 73 20 | 49 74 3f 09 34 39 0d 47 |What Is |It?.49.G|
|00001260| 6c 75 65 20 43 6f 64 65 | 20 46 6f 72 20 4d 75 6c |lue Code| For Mul|
|00001270| 74 69 6e 6f 64 65 20 43 | 6f 6e 74 72 6f 6c 20 43 |tinode C|ontrol C|
|00001280| 61 6c 6c 73 09 35 30 0d | 54 68 69 6e 67 73 20 59 |alls.50.|Things Y|
|00001290| 6f 75 20 4e 65 65 64 20 | 74 6f 20 4b 6e 6f 77 20 |ou Need |to Know |
|000012a0| 57 68 65 6e 20 57 72 69 | 74 69 6e 67 20 61 20 4d |When Wri|ting a M|
|000012b0| 75 6c 74 69 6e 6f 64 65 | 20 41 70 70 6c 69 63 61 |ultinode| Applica|
|000012c0| 74 69 6f 6e 09 35 33 0d | 41 64 64 4e 6f 64 65 20 |tion.53.|AddNode |
|000012d0| 28 63 73 43 6f 64 65 3d | 32 36 32 29 09 35 33 0d |(csCode=|262).53.|
|000012e0| 52 65 63 65 69 76 69 6e | 67 20 50 61 63 6b 65 74 |Receivin|g Packet|
|000012f0| 73 09 35 34 0d 53 65 6e | 64 69 6e 67 20 44 61 74 |s.54.Sen|ding Dat|
|00001300| 61 67 72 61 6d 73 20 54 | 68 72 6f 75 67 68 20 4d |agrams T|hrough M|
|00001310| 75 6c 74 69 6e 6f 64 65 | 73 09 35 35 0d 4e 65 74 |ultinode|s.55.Net|
|00001320| 57 72 69 74 65 20 28 63 | 73 43 6f 64 65 3d 32 36 |Write (c|sCode=26|
|00001330| 31 29 09 35 35 0d 41 70 | 70 6c 65 54 61 6c 6b 20 |1).55.Ap|pleTalk |
|00001340| 52 65 6d 6f 74 65 20 41 | 63 63 65 73 73 20 4e 65 |Remote A|ccess Ne|
|00001350| 74 77 6f 72 6b 20 4e 75 | 6d 62 65 72 20 52 65 6d |twork Nu|mber Rem|
|00001360| 61 70 70 69 6e 67 09 35 | 35 0d 49 73 20 54 68 65 |apping.5|5.Is The|
|00001370| 72 65 20 61 20 52 6f 75 | 74 65 72 20 6f 6e 20 74 |re a Rou|ter on t|
|00001380| 68 65 20 4e 65 74 77 6f | 72 6b 3f 09 35 36 0d 4e |he Netwo|rk?.56.N|
|00001390| 65 77 20 66 6f 72 20 41 | 70 70 6c 65 54 61 6c 6b |ew for A|ppleTalk|
|000013a0| 20 41 44 45 56 73 09 35 | 36 0d 41 47 65 74 49 6e | ADEVs.5|6.AGetIn|
|000013b0| 66 6f 20 28 44 30 3d 33 | 29 09 35 37 0d 41 44 65 |fo (D0=3|).57.ADe|
|000013c0| 6c 4e 6f 64 65 20 20 28 | 44 30 3d 31 30 29 09 35 |lNode (|D0=10).5|
|000013d0| 39 0d 41 47 65 74 4e 6f | 64 65 52 65 66 20 20 28 |9.AGetNo|deRef (|
|000013e0| 44 30 3d 31 31 29 09 35 | 39 0d 41 4f 70 65 6e 20 |D0=11).5|9.AOpen |
|000013f0| 20 28 44 30 3d 37 29 09 | 36 30 0d 41 43 6c 6f 73 | (D0=7).|60.AClos|
|00001400| 65 20 28 44 30 3d 38 29 | 09 36 30 0d 41 49 6e 73 |e (D0=8)|.60.AIns|
|00001410| 74 61 6c 6c 20 28 44 30 | 3d 31 29 09 36 30 0d 41 |tall (D0|=1).60.A|
|00001420| 53 68 75 74 44 6f 77 6e | 20 28 44 30 3d 32 29 09 |ShutDown| (D0=2).|
|00001430| 36 30 0d 52 65 63 65 69 | 76 69 6e 67 20 50 61 63 |60.Recei|ving Pac|
|00001440| 6b 65 74 73 09 36 30 0d | 44 65 66 65 6e 64 69 6e |kets.60.|Defendin|
|00001450| 67 20 4d 75 6c 74 69 6e | 6f 64 65 20 41 64 64 72 |g Multin|ode Addr|
|00001460| 65 73 73 65 73 09 36 31 | 0d 43 6f 72 72 65 63 74 |esses.61|.Correct|
|00001470| 69 6f 6e 73 2f 43 6c 61 | 72 69 66 69 63 61 74 69 |ions/Cla|rificati|
|00001480| 6f 6e 73 20 74 6f 20 74 | 68 65 20 4c 41 50 20 4d |ons to t|he LAP M|
|00001490| 61 6e 61 67 65 72 09 36 | 31 0d 4c 52 64 44 69 73 |anager.6|1.LRdDis|
|000014a0| 70 61 74 63 68 20 28 44 | 30 20 3d 20 31 29 09 36 |patch (D|0 = 1).6|
|000014b0| 31 0d 4c 57 72 74 49 6e | 73 65 72 74 20 28 44 30 |1.LWrtIn|sert (D0|
|000014c0| 20 3d 20 32 29 09 36 31 | 0d 41 70 70 6c 65 54 61 | = 2).61|.AppleTa|
|000014d0| 6c 6b 20 56 65 72 73 69 | 6f 6e 20 49 6e 66 6f 72 |lk Versi|on Infor|
|000014e0| 6d 61 74 69 6f 6e 09 36 | 31 0d 43 6f 6e 74 61 63 |mation.6|1.Contac|
|000014f0| 74 69 6e 67 20 41 70 70 | 6c 65 20 53 6f 66 74 77 |ting App|le Softw|
|00001500| 61 72 65 20 4c 69 63 65 | 6e 73 69 6e 67 09 36 34 |are Lice|nsing.64|
|00001510| 0d 49 6e 74 72 6f 64 75 | 63 74 69 6f 6e 0d 54 68 |.Introdu|ction.Th|
|00001520| 69 73 20 54 65 63 68 20 | 4e 6f 74 65 20 64 69 66 |is Tech |Note dif|
|00001530| 66 65 72 73 20 66 72 6f | 6d 20 70 72 65 76 69 6f |fers fro|m previo|
|00001540| 75 73 20 72 65 76 69 73 | 69 6f 6e 73 20 69 6e 20 |us revis|ions in |
|00001550| 74 68 61 74 20 74 68 65 | 20 73 75 62 6a 65 63 74 |that the| subject|
|00001560| 73 20 68 61 76 65 20 62 | 65 65 6e 20 72 65 6f 72 |s have b|een reor|
|00001570| 64 65 72 65 64 2e 20 54 | 68 65 20 74 6f 70 69 63 |dered. T|he topic|
|00001580| 73 20 61 72 65 20 70 72 | 65 73 65 6e 74 65 64 20 |s are pr|esented |
|00001590| 61 63 63 6f 72 64 69 6e | 67 20 74 6f 20 74 68 65 |accordin|g to the|
|000015a0| 20 20 6f 72 64 65 72 20 | 6f 66 20 74 68 65 20 41 | order |of the A|
|000015b0| 70 70 6c 65 54 61 6c 6b | 20 76 65 72 73 69 6f 6e |ppleTalk| version|
|000015c0| 20 69 6e 20 77 68 69 63 | 68 20 74 68 65 20 66 65 | in whic|h the fe|
|000015d0| 61 74 75 72 65 20 77 61 | 73 20 66 69 72 73 74 20 |ature wa|s first |
|000015e0| 69 6d 70 6c 65 6d 65 6e | 74 65 64 2e 20 59 6f 75 |implemen|ted. You|
|000015f0| 20 63 61 6e 20 66 69 6e | 64 20 6e 65 77 20 74 6f | can fin|d new to|
|00001600| 70 69 63 73 20 61 6e 64 | 20 6d 6f 64 69 66 69 63 |pics and| modific|
|00001610| 61 74 69 6f 6e 73 20 74 | 6f 20 74 68 69 73 20 54 |ations t|o this T|
|00001620| 65 63 68 20 4e 6f 74 65 | 20 62 79 20 6c 6f 6f 6b |ech Note| by look|
|00001630| 69 6e 67 20 66 6f 72 20 | 6d 61 74 65 72 69 61 6c |ing for |material|
|00001640| 20 73 65 74 20 6f 66 66 | 20 62 79 20 63 68 61 6e | set off| by chan|
|00001650| 67 65 20 62 61 72 73 20 | 69 6e 20 74 68 65 20 6d |ge bars |in the m|
|00001660| 61 72 67 69 6e 73 2e 0d | 54 68 65 20 66 69 72 73 |argins..|The firs|
|00001670| 74 20 73 65 63 74 69 6f | 6e 20 69 6e 20 74 68 69 |t sectio|n in thi|
|00001680| 73 20 4e 6f 74 65 20 70 | 72 65 73 65 6e 74 73 20 |s Note p|resents |
|00001690| 61 20 6c 69 73 74 20 6f | 66 20 74 68 65 20 6f 72 |a list o|f the or|
|000016a0| 69 67 69 6e 61 6c 20 41 | 70 70 6c 65 54 61 6c 6b |iginal A|ppleTalk|
|000016b0| 20 4d 61 6e 61 67 65 72 | 20 63 61 6c 6c 73 20 77 | Manager| calls w|
|000016c0| 68 69 63 68 20 61 72 65 | 20 4e 4f 54 20 62 65 69 |hich are| NOT bei|
|000016d0| 6e 67 20 70 6f 72 74 65 | 64 20 74 6f 20 74 68 65 |ng porte|d to the|
|000016e0| 20 50 6f 77 65 72 50 43 | 20 70 6c 61 74 66 6f 72 | PowerPC| platfor|
|000016f0| 6d 2e 20 20 54 68 65 20 | 6c 69 73 74 20 69 6e 63 |m. The |list inc|
|00001700| 6c 75 64 65 73 20 74 68 | 65 20 50 72 65 66 65 72 |ludes th|e Prefer|
|00001710| 72 65 64 20 41 70 70 6c | 65 54 61 6c 6b 20 76 65 |red Appl|eTalk ve|
|00001720| 72 73 69 6f 6e 20 6f 66 | 20 74 68 65 20 66 75 6e |rsion of| the fun|
|00001730| 63 74 69 6f 6e 20 63 61 | 6c 6c 2c 20 6f 72 20 74 |ction ca|ll, or t|
|00001740| 68 65 20 70 72 65 66 65 | 72 72 65 64 20 6d 65 74 |he prefe|rred met|
|00001750| 68 6f 64 20 66 6f 72 20 | 69 6d 70 6c 65 6d 65 6e |hod for |implemen|
|00001760| 74 69 6e 67 20 74 68 69 | 73 20 66 75 6e 63 74 69 |ting thi|s functi|
|00001770| 6f 6e 61 6c 69 74 79 2e | 20 20 49 74 20 69 73 20 |onality.| It is |
|00001780| 69 6d 70 6f 72 74 61 6e | 74 20 74 68 61 74 20 79 |importan|t that y|
|00001790| 6f 75 20 72 65 76 69 65 | 77 20 74 68 69 73 20 6c |ou revie|w this l|
|000017a0| 69 73 74 20 61 6e 64 20 | 63 68 65 63 6b 20 77 68 |ist and |check wh|
|000017b0| 65 74 68 65 72 20 79 6f | 75 72 20 70 72 6f 67 72 |ether yo|ur progr|
|000017c0| 61 6d 20 69 73 20 75 73 | 69 6e 67 20 61 6e 79 20 |am is us|ing any |
|000017d0| 6f 66 20 74 68 65 73 65 | 20 6f 72 69 67 69 6e 61 |of these| origina|
|000017e0| 6c 20 63 61 6c 6c 73 2e | 20 20 49 66 20 73 6f 2c |l calls.| If so,|
|000017f0| 20 61 6e 64 20 79 6f 75 | 20 77 61 6e 74 20 79 6f | and you| want yo|
|00001800| 75 72 20 70 72 6f 67 72 | 61 6d 20 63 6f 64 65 20 |ur progr|am code |
|00001810| 74 6f 20 62 65 20 63 6f | 6d 70 61 74 69 62 6c 65 |to be co|mpatible|
|00001820| 20 77 69 74 68 20 74 68 | 65 20 50 6f 77 65 72 20 | with th|e Power |
|00001830| 50 43 20 70 6c 61 74 66 | 6f 72 6d 2c 20 69 74 20 |PC platf|orm, it |
|00001840| 69 73 20 61 64 76 69 73 | 65 64 20 74 68 61 74 20 |is advis|ed that |
|00001850| 79 6f 75 20 6d 6f 64 69 | 66 79 20 79 6f 75 72 20 |you modi|fy your |
|00001860| 70 72 6f 67 72 61 6d 20 | 74 6f 20 75 73 65 20 74 |program |to use t|
|00001870| 68 65 20 50 72 65 66 65 | 72 72 65 64 20 41 70 70 |he Prefe|rred App|
|00001880| 6c 65 54 61 6c 6b 20 69 | 6e 74 65 72 66 61 63 65 |leTalk i|nterface|
|00001890| 20 63 61 6c 6c 73 2e 0d | 54 68 65 20 6e 65 78 74 | calls..|The next|
|000018a0| 20 73 65 63 74 69 6f 6e | 20 69 6e 20 74 68 69 73 | section| in this|
|000018b0| 20 4e 6f 74 65 2c 20 d2 | 54 68 65 20 27 61 74 6b | Note, .|The 'atk|
|000018c0| 76 27 20 47 65 73 74 61 | 6c 74 20 53 65 6c 65 63 |v' Gesta|lt Selec|
|000018d0| 74 6f 72 2c d3 20 64 69 | 73 63 75 73 73 65 73 20 |tor,. di|scusses |
|000018e0| 74 68 65 20 6e 65 77 20 | 47 65 73 74 61 6c 74 20 |the new |Gestalt |
|000018f0| 73 65 6c 65 63 74 6f 72 | 20 27 61 74 6b 76 27 2c |selector| 'atkv',|
|00001900| 20 77 68 69 63 68 20 70 | 72 6f 76 69 64 65 73 20 | which p|rovides |
|00001910| 76 65 72 73 69 6f 6e 20 | 69 6e 66 6f 72 6d 61 74 |version |informat|
|00001920| 69 6f 6e 20 77 68 65 6e | 20 41 70 70 6c 65 54 61 |ion when| AppleTa|
|00001930| 6c 6b 20 69 73 20 61 76 | 61 69 6c 61 62 6c 65 2e |lk is av|ailable.|
|00001940| 20 0d 54 68 65 20 6e 65 | 78 74 20 73 65 63 74 69 | .The ne|xt secti|
|00001950| 6f 6e 2c 20 d2 53 61 6d | 70 6c 65 20 53 6f 63 6b |on, .Sam|ple Sock|
|00001960| 65 74 20 4c 69 73 74 65 | 6e 65 72 2c d3 20 70 72 |et Liste|ner,. pr|
|00001970| 65 73 65 6e 74 73 20 61 | 20 73 61 6d 70 6c 65 20 |esents a| sample |
|00001980| 73 6f 63 6b 65 74 20 6c | 69 73 74 65 6e 65 72 2c |socket l|istener,|
|00001990| 20 69 6e 63 6c 75 64 69 | 6e 67 20 69 6e 69 74 69 | includi|ng initi|
|000019a0| 61 6c 69 7a 61 74 69 6f | 6e 20 63 6f 64 65 20 74 |alizatio|n code t|
|000019b0| 6f 20 61 73 73 69 73 74 | 20 68 69 67 68 2d 6c 65 |o assist| high-le|
|000019c0| 76 65 6c 20 6c 61 6e 67 | 75 61 67 65 20 70 72 6f |vel lang|uage pro|
|000019d0| 67 72 61 6d 6d 65 72 73 | 2e 20 54 68 65 72 65 20 |grammers|. There |
|000019e0| 73 6f 63 6b 65 74 20 6c | 69 73 74 65 6e 65 72 20 |socket l|istener |
|000019f0| 63 6f 6d 6d 65 6e 74 73 | 20 64 65 73 63 72 69 62 |comments| describ|
|00001a00| 65 20 69 6e 20 64 65 74 | 61 69 6c 20 74 68 65 20 |e in det|ail the |
|00001a10| 62 61 73 69 63 20 66 75 | 6e 63 74 69 6f 6e 73 20 |basic fu|nctions |
|00001a20| 6f 66 20 70 61 63 6b 65 | 74 20 68 61 6e 64 6c 69 |of packe|t handli|
|00001a30| 6e 67 20 61 74 20 74 68 | 65 20 64 61 74 61 20 6c |ng at th|e data l|
|00001a40| 69 6e 6b 20 6c 61 79 65 | 72 2e 20 20 49 6e 66 6f |ink laye|r. Info|
|00001a50| 72 6d 61 74 69 6f 6e 20 | 69 73 20 69 6e 63 6c 75 |rmation |is inclu|
|00001a60| 64 65 64 20 6f 6e 20 68 | 6f 77 20 74 6f 20 6d 61 |ded on h|ow to ma|
|00001a70| 6b 65 20 74 68 69 73 20 | 73 6f 63 6b 65 74 20 6c |ke this |socket l|
|00001a80| 69 73 74 65 6e 65 72 20 | 63 6f 6d 70 61 74 69 62 |istener |compatib|
|00001a90| 6c 65 20 77 69 74 68 20 | 56 69 72 74 75 61 6c 20 |le with |Virtual |
|00001aa0| 4d 65 6d 6f 72 79 2e 0d | 54 68 65 20 6e 65 78 74 |Memory..|The next|
|00001ab0| 20 73 65 63 74 69 6f 6e | 2c 20 d2 54 68 65 20 41 | section|, .The A|
|00001ac0| 70 70 6c 65 54 61 6c 6b | 20 54 72 61 6e 73 69 74 |ppleTalk| Transit|
|00001ad0| 69 6f 6e 20 51 75 65 75 | 65 2c d3 20 64 69 73 63 |ion Queu|e,. disc|
|00001ae0| 75 73 73 65 73 20 74 68 | 65 20 41 70 70 6c 65 54 |usses th|e AppleT|
|00001af0| 61 6c 6b 20 54 72 61 6e | 73 69 74 69 6f 6e 20 51 |alk Tran|sition Q|
|00001b00| 75 65 75 65 20 69 6e 63 | 6c 75 64 69 6e 67 20 69 |ueue inc|luding i|
|00001b10| 74 73 20 73 75 70 70 6f | 72 74 20 66 6f 72 20 74 |ts suppo|rt for t|
|00001b20| 68 65 20 46 6c 61 67 73 | 68 69 70 20 4e 61 6d 69 |he Flags|hip Nami|
|00001b30| 6e 67 20 53 65 72 76 69 | 63 65 2c 20 41 70 70 6c |ng Servi|ce, Appl|
|00001b40| 65 54 61 6c 6b 20 52 65 | 6d 6f 74 65 20 41 63 63 |eTalk Re|mote Acc|
|00001b50| 65 73 73 2c 20 61 6e 64 | 20 63 68 61 6e 67 65 73 |ess, and| changes|
|00001b60| 20 74 6f 20 70 72 6f 63 | 65 73 73 6f 72 20 73 70 | to proc|essor sp|
|00001b70| 65 65 64 20 74 68 61 74 | 20 63 61 6e 20 61 66 66 |eed that| can aff|
|00001b80| 65 63 74 20 4c 6f 63 61 | 6c 54 61 6c 6b 20 61 6e |ect Loca|lTalk an|
|00001b90| 64 20 6f 74 68 65 72 20 | 70 72 6f 63 65 73 73 65 |d other |processe|
|00001ba0| 73 20 64 65 70 65 6e 64 | 65 6e 74 20 6f 6e 20 70 |s depend|ent on p|
|00001bb0| 72 6f 63 65 73 73 6f 72 | 20 73 70 65 65 64 2e 20 |rocessor| speed. |
|00001bc0| 49 6e 63 6c 75 64 65 64 | 20 69 73 20 50 61 73 63 |Included| is Pasc|
|00001bd0| 61 6c 20 73 6f 75 72 63 | 65 20 63 6f 64 65 20 66 |al sourc|e code f|
|00001be0| 6f 72 20 63 68 65 63 6b | 69 6e 67 20 77 68 65 74 |or check|ing whet|
|00001bf0| 68 65 72 20 74 68 65 20 | 50 68 61 73 65 20 32 20 |her the |Phase 2 |
|00001c00| 4c 41 50 20 4d 61 6e 61 | 67 65 72 20 65 78 69 73 |LAP Mana|ger exis|
|00001c10| 74 73 20 74 6f 20 73 75 | 70 70 6f 72 74 20 74 68 |ts to su|pport th|
|00001c20| 65 20 54 72 61 6e 73 69 | 74 69 6f 6e 20 51 75 65 |e Transi|tion Que|
|00001c30| 75 65 20 6d 65 63 68 61 | 6e 69 73 6d 2c 20 70 6c |ue mecha|nism, pl|
|00001c40| 75 73 20 73 61 6d 70 6c | 65 20 54 72 61 6e 73 69 |us sampl|e Transi|
|00001c50| 74 69 6f 6e 20 51 75 65 | 75 65 20 68 61 6e 64 6c |tion Que|ue handl|
|00001c60| 65 72 73 20 77 72 69 74 | 74 65 6e 20 69 6e 20 62 |ers writ|ten in b|
|00001c70| 6f 74 68 20 43 20 61 6e | 64 20 50 61 73 63 61 6c |oth C an|d Pascal|
|00001c80| 2e 20 20 54 68 69 73 20 | 73 65 63 74 69 6f 6e 20 |. This |section |
|00001c90| 69 6e 63 6c 75 64 65 73 | 20 61 20 64 65 73 63 72 |includes| a descr|
|00001ca0| 69 70 74 69 6f 6e 20 6f | 66 20 61 6e 20 69 6d 70 |iption o|f an imp|
|00001cb0| 6f 72 74 61 6e 74 20 62 | 75 67 20 77 68 69 63 68 |ortant b|ug which|
|00001cc0| 20 65 78 69 73 74 73 20 | 69 6e 20 74 68 65 20 67 | exists |in the g|
|00001cd0| 6c 75 65 20 63 6f 64 65 | 2c 20 69 6d 70 6c 65 6d |lue code|, implem|
|00001ce0| 65 6e 74 65 64 20 66 6f | 72 20 74 68 65 20 4c 41 |ented fo|r the LA|
|00001cf0| 50 41 64 64 41 54 51 20 | 61 6e 64 20 74 68 65 20 |PAddATQ |and the |
|00001d00| 4c 41 50 52 6d 76 41 54 | 51 20 66 75 6e 63 74 69 |LAPRmvAT|Q functi|
|00001d10| 6f 6e 73 20 69 6e 20 4d | 50 57 20 76 33 2e 32 2e |ons in M|PW v3.2.|
|00001d20| 78 2e 20 20 55 6e 64 65 | 72 20 4d 50 57 20 76 33 |x. Unde|r MPW v3|
|00001d30| 2e 33 2c 20 74 68 65 20 | 67 6c 75 65 20 72 6f 75 |.3, the |glue rou|
|00001d40| 74 69 6e 65 73 20 66 6f | 72 20 74 68 65 73 65 20 |tines fo|r these |
|00001d50| 66 75 6e 63 74 69 6f 6e | 73 20 68 61 73 20 62 65 |function|s has be|
|00001d60| 65 6e 20 63 6f 72 72 65 | 63 74 65 64 2e 20 20 54 |en corre|cted. T|
|00001d70| 68 65 20 67 6c 75 65 20 | 63 6f 64 65 20 69 73 20 |he glue |code is |
|00001d80| 66 72 6f 6d 20 74 68 65 | 20 4d 50 57 20 49 6e 74 |from the| MPW Int|
|00001d90| 65 72 66 61 63 65 2e 6f | 20 66 69 6c 65 2e 20 20 |erface.o| file. |
|00001da0| 52 65 70 6c 61 63 65 6d | 65 6e 74 20 67 6c 75 65 |Replacem|ent glue|
|00001db0| 20 72 6f 75 74 69 6e 65 | 73 20 61 72 65 20 70 72 | routine|s are pr|
|00001dc0| 6f 76 69 64 65 64 20 74 | 6f 20 77 6f 72 6b 20 61 |ovided t|o work a|
|00001dd0| 72 6f 75 6e 64 20 74 68 | 65 20 70 72 6f 62 6c 65 |round th|e proble|
|00001de0| 6d 20 66 6f 72 20 62 6f | 74 68 20 4d 50 57 20 76 |m for bo|th MPW v|
|00001df0| 33 2e 32 2e 78 20 61 6e | 64 20 54 68 69 6e 6b 20 |3.2.x an|d Think |
|00001e00| 70 72 6f 67 72 61 6d 6d | 65 72 73 2c 20 76 35 2e |programm|ers, v5.|
|00001e10| 78 20 61 6e 64 20 65 61 | 72 6c 69 65 72 2e 0d 54 |x and ea|rlier..T|
|00001e20| 68 65 20 73 65 63 74 69 | 6f 6e 20 d2 4d 75 6c 74 |he secti|on .Mult|
|00001e30| 69 76 65 6e 64 6f 72 20 | 41 44 45 56 20 41 72 63 |ivendor |ADEV Arc|
|00001e40| 68 69 74 65 63 74 75 72 | 65 d3 20 70 72 65 73 65 |hitectur|e. prese|
|00001e50| 6e 74 73 20 74 68 65 20 | 4d 75 6c 74 69 76 65 6e |nts the |Multiven|
|00001e60| 64 6f 72 20 41 44 45 56 | 20 41 72 63 68 69 74 65 |dor ADEV| Archite|
|00001e70| 63 74 75 72 65 2c 20 77 | 68 69 63 68 20 61 6c 6c |cture, w|hich all|
|00001e80| 6f 77 73 20 66 6f 72 20 | 45 74 68 65 72 6e 65 74 |ows for |Ethernet|
|00001e90| 20 61 6e 64 20 74 6f 6b | 65 6e 20 72 69 6e 67 20 | and tok|en ring |
|00001ea0| 63 61 72 64 73 20 66 72 | 6f 6d 20 6d 75 6c 74 69 |cards fr|om multi|
|00001eb0| 70 6c 65 20 76 65 6e 64 | 6f 72 73 20 74 6f 20 62 |ple vend|ors to b|
|00001ec0| 65 20 69 6e 73 74 61 6c | 6c 65 64 20 6f 6e 20 74 |e instal|led on t|
|00001ed0| 68 65 20 73 61 6d 65 20 | 73 79 73 74 65 6d 2e 20 |he same |system. |
|00001ee0| 49 6e 63 6c 75 64 65 64 | 20 69 73 20 61 20 64 65 |Included| is a de|
|00001ef0| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 74 68 65 |scriptio|n of the|
|00001f00| 20 66 75 6e 63 74 69 6f | 6e 61 6c 69 74 79 20 6f | functio|nality o|
|00001f10| 66 20 74 68 65 20 6e 65 | 77 20 64 72 69 76 65 72 |f the ne|w driver|
|00001f20| 20 73 68 65 6c 6c 73 20 | 66 6f 72 20 45 74 68 65 | shells |for Ethe|
|00001f30| 72 6e 65 74 20 61 6e 64 | 20 74 6f 6b 65 6e 20 72 |rnet and| token r|
|00001f40| 69 6e 67 2c 20 70 6c 75 | 73 20 61 20 64 65 73 63 |ing, plu|s a desc|
|00001f50| 72 69 70 74 69 6f 6e 20 | 6f 66 20 74 68 65 20 2e |ription |of the .|
|00001f60| 54 4f 4b 4e 20 69 6e 74 | 65 72 66 61 63 65 20 72 |TOKN int|erface r|
|00001f70| 65 71 75 69 72 65 64 20 | 66 6f 72 20 63 6f 6d 70 |equired |for comp|
|00001f80| 61 74 69 62 69 6c 69 74 | 79 20 77 69 74 68 20 74 |atibilit|y with t|
|00001f90| 68 65 20 6e 65 77 20 41 | 44 45 56 20 41 72 63 68 |he new A|DEV Arch|
|00001fa0| 69 74 65 63 74 75 72 65 | 2e 0d 54 68 65 20 73 65 |itecture|..The se|
|00001fb0| 63 74 69 6f 6e 2c 20 d2 | 44 72 69 76 65 72 20 43 |ction, .|Driver C|
|00001fc0| 6f 6e 73 69 64 65 72 61 | 74 69 6f 6e 73 20 66 6f |onsidera|tions fo|
|00001fd0| 72 20 56 69 72 74 75 61 | 6c 20 4d 65 6d 6f 72 79 |r Virtua|l Memory|
|00001fe0| 2c d3 20 73 68 6f 77 73 | 20 68 6f 77 20 74 6f 20 |,. shows| how to |
|00001ff0| 6d 6f 64 69 66 79 20 64 | 72 69 76 65 72 20 63 6f |modify d|river co|
|00002000| 64 65 20 66 6f 72 20 63 | 6f 6d 70 61 74 69 62 69 |de for c|ompatibi|
|00002010| 6c 69 74 79 20 77 69 74 | 68 20 73 79 73 74 65 6d |lity wit|h system|
|00002020| 20 73 6f 66 74 77 61 72 | 65 20 76 65 72 73 69 6f | softwar|e versio|
|00002030| 6e 20 37 2e 30 20 76 69 | 72 74 75 61 6c 20 6d 65 |n 7.0 vi|rtual me|
|00002040| 6d 6f 72 79 2e 0d 54 68 | 65 20 73 65 63 74 69 6f |mory..Th|e sectio|
|00002050| 6e 20 d2 45 74 68 65 72 | 6e 65 74 20 4e 42 20 61 |n .Ether|net NB a|
|00002060| 6e 64 20 4d 61 63 69 6e | 74 6f 73 68 20 51 75 61 |nd Macin|tosh Qua|
|00002070| 64 72 61 20 42 75 69 6c | 74 2d 69 6e 20 53 6f 66 |dra Buil|t-in Sof|
|00002080| 74 77 61 72 65 20 49 6e | 74 65 72 66 61 63 65 20 |tware In|terface |
|00002090| 43 68 61 6e 67 65 d3 20 | 70 72 65 73 65 6e 74 73 |Change. |presents|
|000020a0| 20 61 20 63 68 61 6e 67 | 65 20 74 6f 20 74 68 65 | a chang|e to the|
|000020b0| 20 2e 45 4e 45 54 20 69 | 6e 74 65 72 66 61 63 65 | .ENET i|nterface|
|000020c0| 20 74 68 61 74 20 72 65 | 73 75 6c 74 65 64 20 66 | that re|sulted f|
|000020d0| 72 6f 6d 20 74 68 65 20 | 69 6d 70 6c 65 6d 65 6e |rom the |implemen|
|000020e0| 74 61 74 69 6f 6e 20 6f | 66 20 74 68 65 20 53 4f |tation o|f the SO|
|000020f0| 4e 49 43 20 4e 65 74 77 | 6f 72 6b 20 49 6e 74 65 |NIC Netw|ork Inte|
|00002100| 72 66 61 63 65 20 43 6f | 6e 74 72 6f 6c 6c 65 72 |rface Co|ntroller|
|00002110| 20 6f 6e 20 74 68 65 20 | 45 74 68 65 72 6e 65 74 | on the |Ethernet|
|00002120| 20 4e 42 20 43 61 72 64 | 20 61 6e 64 20 69 6e 20 | NB Card| and in |
|00002130| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 51 75 |the Maci|ntosh Qu|
|00002140| 61 64 72 61 20 63 6f 6d | 70 75 74 65 72 d5 73 20 |adra com|puter.s |
|00002150| 62 75 69 6c 74 2d 69 6e | 20 45 74 68 65 72 6e 65 |built-in| Etherne|
|00002160| 74 2e 20 54 68 65 20 63 | 68 61 6e 67 65 20 63 6f |t. The c|hange co|
|00002170| 6e 63 65 72 6e 73 20 74 | 68 65 20 45 47 65 74 49 |ncerns t|he EGetI|
|00002180| 6e 66 6f 20 66 75 6e 63 | 74 69 6f 6e 2c 20 77 68 |nfo func|tion, wh|
|00002190| 69 63 68 20 6e 6f 77 20 | 72 65 74 75 72 6e 73 20 |ich now |returns |
|000021a0| 61 64 64 69 74 69 6f 6e | 61 6c 20 6e 65 74 77 6f |addition|al netwo|
|000021b0| 72 6b 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 66 |rk infor|mation f|
|000021c0| 6f 72 20 41 70 70 6c 65 | 20 45 74 68 65 72 6e 65 |or Apple| Etherne|
|000021d0| 74 20 70 72 6f 64 75 63 | 74 73 20 62 61 73 65 64 |t produc|ts based|
|000021e0| 20 6f 6e 20 74 68 65 20 | 53 4f 4e 49 43 20 63 68 | on the |SONIC ch|
|000021f0| 69 70 2e 0d 54 68 65 20 | 73 65 63 74 69 6f 6e 20 |ip..The |section |
|00002200| d2 43 6f 72 72 65 63 74 | 69 6f 6e 20 74 6f 20 74 |.Correct|ion to t|
|00002210| 68 65 20 45 4e 45 54 2e | 68 20 48 65 61 64 65 72 |he ENET.|h Header|
|00002220| 20 46 69 6c 65 d3 20 70 | 72 65 73 65 6e 74 73 20 | File. p|resents |
|00002230| 61 20 63 6f 72 72 65 63 | 74 69 6f 6e 20 74 6f 20 |a correc|tion to |
|00002240| 74 68 65 20 68 65 61 64 | 65 72 20 66 69 6c 65 20 |the head|er file |
|00002250| 66 6f 72 20 70 72 6f 67 | 72 61 6d 73 20 77 68 69 |for prog|rams whi|
|00002260| 63 68 20 77 69 6c 6c 20 | 6d 61 6b 65 20 61 20 70 |ch will |make a p|
|00002270| 61 72 61 6d 65 74 65 72 | 20 62 6c 6f 63 6b 20 43 |arameter| block C|
|00002280| 6f 6e 74 72 6f 6c 20 63 | 61 6c 6c 20 74 6f 20 74 |ontrol c|all to t|
|00002290| 68 65 20 2e 45 4e 45 54 | 2c 20 2e 54 4f 4b 4e 2c |he .ENET|, .TOKN,|
|000022a0| 20 6f 72 20 2e 46 44 44 | 49 20 64 72 69 76 65 72 | or .FDD|I driver|
|000022b0| 2c 20 74 6f 20 61 64 64 | 20 6f 72 20 64 65 6c 65 |, to add| or dele|
|000022c0| 74 65 20 6d 75 6c 74 69 | 63 61 73 74 20 61 64 64 |te multi|cast add|
|000022d0| 72 65 73 73 65 73 2e 20 | 54 68 69 73 20 70 72 6f |resses. |This pro|
|000022e0| 62 6c 65 6d 20 6f 6e 6c | 79 20 61 70 70 6c 69 65 |blem onl|y applie|
|000022f0| 73 20 74 6f 20 43 20 70 | 72 6f 67 72 61 6d 73 20 |s to C p|rograms |
|00002300| 77 68 69 63 68 20 61 72 | 65 20 77 72 69 74 74 65 |which ar|e writte|
|00002310| 6e 20 74 6f 20 69 6e 63 | 6c 75 64 65 20 74 68 65 |n to inc|lude the|
|00002320| 20 45 4e 45 54 2e 68 20 | 66 69 6c 65 20 73 75 70 | ENET.h |file sup|
|00002330| 70 6c 69 65 64 20 77 69 | 74 68 20 4d 50 57 20 76 |plied wi|th MPW v|
|00002340| 33 2e 32 2e 78 20 61 6e | 64 20 77 69 74 68 20 54 |3.2.x an|d with T|
|00002350| 68 69 6e 6b 20 43 20 76 | 35 2e 30 20 74 6f 20 76 |hink C v|5.0 to v|
|00002360| 35 2e 30 2e 34 2e 0d 54 | 68 65 20 73 65 63 74 69 |5.0.4..T|he secti|
|00002370| 6f 6e 20 d2 41 70 70 6c | 65 54 61 6c 6b 20 4d 75 |on .Appl|eTalk Mu|
|00002380| 6c 74 69 70 6c 65 20 4e | 6f 64 65 20 41 72 63 68 |ltiple N|ode Arch|
|00002390| 69 74 65 63 74 75 72 65 | d3 20 64 69 73 63 75 73 |itecture|. discus|
|000023a0| 73 65 73 20 74 68 65 20 | 6e 65 77 20 70 72 6f 67 |ses the |new prog|
|000023b0| 72 61 6d 20 69 6e 74 65 | 72 66 61 63 65 73 20 74 |ram inte|rfaces t|
|000023c0| 6f 20 74 68 65 20 41 70 | 70 6c 65 54 61 6c 6b 20 |o the Ap|pleTalk |
|000023d0| 4d 75 6c 74 69 70 6c 65 | 20 4e 6f 64 65 20 41 72 |Multiple| Node Ar|
|000023e0| 63 68 69 74 65 63 74 75 | 72 65 2e 20 54 68 65 20 |chitectu|re. The |
|000023f0| 6e 65 77 20 61 72 63 68 | 69 74 65 63 74 75 72 65 |new arch|itecture|
|00002400| 20 77 61 73 20 64 65 76 | 65 6c 6f 70 65 64 20 74 | was dev|eloped t|
|00002410| 6f 20 73 75 70 70 6f 72 | 74 20 6d 75 6c 74 69 70 |o suppor|t multip|
|00002420| 6c 65 20 6e 6f 64 65 20 | 63 61 70 61 62 69 6c 69 |le node |capabili|
|00002430| 74 79 20 6f 6e 20 74 68 | 65 20 4d 61 63 69 6e 74 |ty on th|e Macint|
|00002440| 6f 73 68 20 63 6f 6d 70 | 75 74 65 72 2c 20 77 68 |osh comp|uter, wh|
|00002450| 69 63 68 20 61 6c 6c 6f | 77 73 20 74 68 65 20 4d |ich allo|ws the M|
|00002460| 61 63 69 6e 74 6f 73 68 | 20 74 6f 20 70 72 65 73 |acintosh| to pres|
|00002470| 65 6e 74 20 69 74 73 65 | 6c 66 20 61 73 20 73 65 |ent itse|lf as se|
|00002480| 70 61 72 61 74 65 20 65 | 6e 74 69 74 69 65 73 2c |parate e|ntities,|
|00002490| 20 6f 72 20 75 6e 69 71 | 75 65 20 6e 6f 64 65 73 | or uniq|ue nodes|
|000024a0| 20 6f 6e 20 74 68 65 20 | 6e 65 74 77 6f 72 6b 2e | on the |network.|
|000024b0| 20 54 68 65 20 41 70 70 | 6c 65 54 61 6c 6b 20 52 | The App|leTalk R|
|000024c0| 65 6d 6f 74 65 20 41 63 | 63 65 73 73 20 70 72 6f |emote Ac|cess pro|
|000024d0| 67 72 61 6d 20 75 73 65 | 73 20 4d 75 6c 74 69 6e |gram use|s Multin|
|000024e0| 6f 64 65 20 63 61 70 61 | 62 69 6c 69 74 79 20 74 |ode capa|bility t|
|000024f0| 6f 20 69 6d 70 6c 65 6d | 65 6e 74 20 52 65 6d 6f |o implem|ent Remo|
|00002500| 74 65 20 41 63 63 65 73 | 73 20 66 75 6e 63 74 69 |te Acces|s functi|
|00002510| 6f 6e 61 6c 69 74 79 2e | 20 54 68 69 73 20 73 65 |onality.| This se|
|00002520| 63 74 69 6f 6e 20 70 72 | 65 73 65 6e 74 73 20 74 |ction pr|esents t|
|00002530| 68 65 20 44 61 74 61 67 | 72 61 6d 20 44 65 6c 69 |he Datag|ram Deli|
|00002540| 76 65 72 79 20 50 72 6f | 74 6f 63 6f 6c 20 28 44 |very Pro|tocol (D|
|00002550| 44 50 29 20 69 6e 74 65 | 72 66 61 63 65 20 66 6f |DP) inte|rface fo|
|00002560| 72 20 4d 75 6c 74 69 6e | 6f 64 65 20 41 70 70 6c |r Multin|ode Appl|
|00002570| 65 54 61 6c 6b 20 66 6f | 72 20 61 70 70 6c 69 63 |eTalk fo|r applic|
|00002580| 61 74 69 6f 6e 73 20 74 | 6f 20 74 61 6b 65 20 61 |ations t|o take a|
|00002590| 64 76 61 6e 74 61 67 65 | 20 6f 66 20 74 68 69 73 |dvantage| of this|
|000025a0| 20 6e 65 77 20 66 75 6e | 63 74 69 6f 6e 61 6c 69 | new fun|ctionali|
|000025b0| 74 79 2e 20 54 68 69 73 | 20 4e 6f 74 65 2c 20 68 |ty. This| Note, h|
|000025c0| 6f 77 65 76 65 72 2c 20 | 64 6f 65 73 20 6e 6f 74 |owever, |does not|
|000025d0| 20 64 69 73 63 75 73 73 | 20 74 68 65 20 52 65 6d | discuss| the Rem|
|000025e0| 6f 74 65 20 41 63 63 65 | 73 73 20 70 72 6f 67 72 |ote Acce|ss progr|
|000025f0| 61 6d 2e 0d 54 68 65 20 | 73 65 63 74 69 6f 6e 2c |am..The |section,|
|00002600| 20 d2 4e 65 77 20 66 6f | 72 20 41 70 70 6c 65 54 | .New fo|r AppleT|
|00002610| 61 6c 6b 20 41 44 45 56 | 73 2c d3 20 70 72 65 73 |alk ADEV|s,. pres|
|00002620| 65 6e 74 73 20 74 68 65 | 20 63 68 61 6e 67 65 73 |ents the| changes|
|00002630| 20 72 65 71 75 69 72 65 | 64 20 6f 66 20 61 6e 20 | require|d of an |
|00002640| 41 44 45 56 d5 73 20 27 | 61 74 6c 6b 27 20 63 6f |ADEV.s '|atlk' co|
|00002650| 64 65 20 72 65 73 6f 75 | 72 63 65 20 66 6f 72 20 |de resou|rce for |
|00002660| 63 6f 6d 70 61 74 69 62 | 69 6c 69 74 79 20 77 69 |compatib|ility wi|
|00002670| 74 68 20 74 68 65 20 41 | 70 70 6c 65 54 61 6c 6b |th the A|ppleTalk|
|00002680| 20 4d 75 6c 74 69 6e 6f | 64 65 20 41 72 63 68 69 | Multino|de Archi|
|00002690| 74 65 63 74 75 72 65 2e | 20 57 68 69 6c 65 20 77 |tecture.| While w|
|000026a0| 65 20 72 65 63 6f 6d 6d | 65 6e 64 20 74 68 61 74 |e recomm|end that|
|000026b0| 20 64 65 76 65 6c 6f 70 | 65 72 73 20 6f 66 20 45 | develop|ers of E|
|000026c0| 74 68 65 72 6e 65 74 20 | 61 6e 64 20 20 74 6f 6b |thernet |and tok|
|000026d0| 65 6e 20 72 69 6e 67 20 | 6e 65 74 77 6f 72 6b 20 |en ring |network |
|000026e0| 68 61 72 64 77 61 72 65 | 20 63 6f 6e 66 6f 72 6d |hardware| conform|
|000026f0| 20 74 6f 20 74 68 65 20 | 73 70 65 63 69 66 69 63 | to the |specific|
|00002700| 61 74 69 6f 6e 73 20 6f | 66 20 74 68 65 20 4d 75 |ations o|f the Mu|
|00002710| 6c 74 69 76 65 6e 64 6f | 72 20 41 44 45 56 20 41 |ltivendo|r ADEV A|
|00002720| 72 63 68 69 74 65 63 74 | 75 72 65 2c 20 74 68 69 |rchitect|ure, thi|
|00002730| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 73 |s inform|ation is|
|00002740| 20 70 72 65 73 65 6e 74 | 65 64 20 66 6f 72 20 74 | present|ed for t|
|00002750| 68 6f 73 65 20 64 65 76 | 65 6c 6f 70 65 72 73 20 |hose dev|elopers |
|00002760| 6f 66 20 6e 65 74 77 6f | 72 6b 20 70 72 6f 64 75 |of netwo|rk produ|
|00002770| 63 74 73 20 66 6f 72 20 | 77 68 69 63 68 20 41 70 |cts for |which Ap|
|00002780| 70 6c 65 20 64 6f 65 73 | 20 6e 6f 74 20 73 75 70 |ple does| not sup|
|00002790| 70 6c 79 20 61 6e 20 41 | 44 45 56 2e 0d 54 68 65 |ply an A|DEV..The|
|000027a0| 20 66 69 6e 61 6c 20 73 | 65 63 74 69 6f 6e 2c 20 | final s|ection, |
|000027b0| d2 41 70 70 6c 65 54 61 | 6c 6b 20 56 65 72 73 69 |.AppleTa|lk Versi|
|000027c0| 6f 6e 20 49 6e 66 6f 72 | 6d 61 74 69 6f 6e 2c d3 |on Infor|mation,.|
|000027d0| 20 6c 69 73 74 73 20 74 | 68 65 20 76 61 72 69 6f | lists t|he vario|
|000027e0| 75 73 20 76 65 72 73 69 | 6f 6e 73 20 6f 66 20 41 |us versi|ons of A|
|000027f0| 70 70 6c 65 54 61 6c 6b | 2c 20 61 6e 64 20 74 68 |ppleTalk|, and th|
|00002800| 65 20 6e 65 77 20 70 72 | 6f 64 75 63 74 73 20 74 |e new pr|oducts t|
|00002810| 68 61 74 20 72 65 71 75 | 69 72 65 20 74 68 65 20 |hat requ|ire the |
|00002820| 73 75 70 70 6f 72 74 20 | 6f 66 20 74 68 65 20 41 |support |of the A|
|00002830| 70 70 6c 65 54 61 6c 6b | 20 76 65 72 73 69 6f 6e |ppleTalk| version|
|00002840| 2e 0d 57 68 65 72 65 20 | 43 61 6e 20 49 20 47 65 |..Where |Can I Ge|
|00002850| 74 20 74 68 65 20 4c 61 | 74 65 73 74 20 56 65 72 |t the La|test Ver|
|00002860| 73 69 6f 6e 20 6f 66 20 | 41 70 70 6c 65 54 61 6c |sion of |AppleTal|
|00002870| 6b 3f 0d 46 6f 72 20 74 | 65 73 74 69 6e 67 20 70 |k?.For t|esting p|
|00002880| 75 72 70 6f 73 65 73 2c | 20 74 68 65 20 6c 61 74 |urposes,| the lat|
|00002890| 65 73 74 20 76 65 72 73 | 69 6f 6e 20 6f 66 20 41 |est vers|ion of A|
|000028a0| 70 70 6c 65 54 61 6c 6b | 20 61 6e 64 20 72 65 6c |ppleTalk| and rel|
|000028b0| 61 74 65 64 20 73 6f 66 | 74 77 61 72 65 20 69 73 |ated sof|tware is|
|000028c0| 20 61 76 61 69 6c 61 62 | 6c 65 20 6f 6e 20 74 68 | availab|le on th|
|000028d0| 65 20 6c 61 74 65 73 74 | 20 44 65 76 65 6c 6f 70 |e latest| Develop|
|000028e0| 65 72 20 43 44 20 53 65 | 72 69 65 73 20 64 69 73 |er CD Se|ries dis|
|000028f0| 63 2c 20 6f 6e 20 41 70 | 70 6c 65 4c 69 6e 6b 20 |c, on Ap|pleLink |
|00002900| 6f 6e 20 74 68 65 20 44 | 65 76 65 6c 6f 70 65 72 |on the D|eveloper|
|00002910| 20 53 65 72 76 69 63 65 | 73 20 42 75 6c 6c 65 74 | Service|s Bullet|
|00002920| 69 6e 20 42 6f 61 72 64 | 2c 20 61 6e 64 20 6f 6e |in Board|, and on|
|00002930| 20 74 68 65 20 49 6e 74 | 65 72 6e 65 74 20 74 68 | the Int|ernet th|
|00002940| 72 6f 75 67 68 20 61 6e | 6f 6e 79 6d 6f 75 73 20 |rough an|onymous |
|00002950| 46 54 50 20 74 6f 20 66 | 74 70 2e 61 70 70 6c 65 |FTP to f|tp.apple|
|00002960| 2e 63 6f 6d 20 28 31 33 | 30 2e 34 33 2e 32 2e 33 |.com (13|0.43.2.3|
|00002970| 29 2e 20 49 74 20 20 63 | 61 6e 20 62 65 20 69 6e |). It c|an be in|
|00002980| 73 74 61 6c 6c 65 64 20 | 62 79 20 75 73 69 6e 67 |stalled |by using|
|00002990| 20 74 68 65 20 4e 65 74 | 77 6f 72 6b 20 53 6f 66 | the Net|work Sof|
|000029a0| 74 77 61 72 65 20 49 6e | 73 74 61 6c 6c 65 72 2e |tware In|staller.|
|000029b0| 0d 47 6f 69 6e 67 2c 20 | 47 6f 69 6e 67 2c 20 47 |.Going, |Going, G|
|000029c0| 6f 6e 65 2e 2e 2e 0d 46 | 69 76 65 20 79 65 61 72 |one....F|ive year|
|000029d0| 73 20 61 67 6f 20 69 6e | 20 54 65 63 68 20 4e 6f |s ago in| Tech No|
|000029e0| 74 65 20 23 31 33 32 2c | 20 d2 41 70 70 6c 65 54 |te #132,| .AppleT|
|000029f0| 61 6c 6b 20 49 6e 74 65 | 72 66 61 63 65 20 55 70 |alk Inte|rface Up|
|00002a00| 64 61 74 65 d3 2c 20 77 | 65 20 61 6c 65 72 74 65 |date., w|e alerte|
|00002a10| 64 20 64 65 76 65 6c 6f | 70 65 72 73 20 74 68 61 |d develo|pers tha|
|00002a20| 74 20 74 68 65 20 75 73 | 65 20 6f 66 20 74 68 65 |t the us|e of the|
|00002a30| 20 6f 6c 64 20 61 6c 74 | 65 72 6e 61 74 65 20 41 | old alt|ernate A|
|00002a40| 70 70 6c 65 54 61 6c 6b | 20 69 6e 74 65 72 66 61 |ppleTalk| interfa|
|00002a50| 63 65 20 66 75 6e 63 74 | 69 6f 6e 73 20 22 6d 61 |ce funct|ions "ma|
|00002a60| 79 20 63 61 75 73 65 20 | 66 75 74 75 72 65 20 63 |y cause |future c|
|00002a70| 6f 6d 70 61 74 69 62 69 | 6c 69 74 79 20 70 72 6f |ompatibi|lity pro|
|00002a80| 62 6c 65 6d 73 22 2e 20 | 20 46 6f 72 20 50 6f 77 |blems". | For Pow|
|00002a90| 65 72 50 43 2c 20 74 68 | 65 20 6f 6c 64 20 61 6c |erPC, th|e old al|
|00002aa0| 74 65 72 6e 61 74 65 20 | 41 70 70 6c 65 54 61 6c |ternate |AppleTal|
|00002ab0| 6b 20 69 6e 74 65 72 66 | 61 63 65 20 66 75 6e 63 |k interf|ace func|
|00002ac0| 74 69 6f 6e 73 20 61 72 | 65 20 6e 6f 74 20 62 65 |tions ar|e not be|
|00002ad0| 69 6e 67 20 70 6f 72 74 | 65 64 2e 20 20 54 68 65 |ing port|ed. The|
|00002ae0| 73 65 20 63 61 6c 6c 73 | 20 6d 61 6b 65 20 4d 65 |se calls| make Me|
|00002af0| 6d 6f 72 79 20 4d 61 6e | 61 67 65 72 20 63 61 6c |mory Man|ager cal|
|00002b00| 6c 73 20 61 6e 64 20 61 | 72 65 20 6f 66 20 6c 69 |ls and a|re of li|
|00002b10| 6d 69 74 65 64 20 75 73 | 65 20 69 6e 20 63 6f 6e |mited us|e in con|
|00002b20| 74 72 61 73 74 20 74 6f | 20 74 68 65 20 50 72 65 |trast to| the Pre|
|00002b30| 66 65 72 72 65 64 20 53 | 74 79 6c 65 20 63 61 6c |ferred S|tyle cal|
|00002b40| 6c 73 20 70 72 65 73 65 | 6e 74 65 64 20 69 6e 20 |ls prese|nted in |
|00002b50| d2 49 6e 73 69 64 65 20 | 4d 61 63 69 6e 74 6f 73 |.Inside |Macintos|
|00002b60| 68 d3 20 56 6f 6c 75 6d | 65 20 56 2e 20 20 54 68 |h. Volum|e V. Th|
|00002b70| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 69 73 20 61 |e follow|ing is a|
|00002b80| 20 6c 69 73 74 20 6f 66 | 20 74 68 65 20 41 70 70 | list of| the App|
|00002b90| 6c 65 54 61 6c 6b 20 63 | 61 6c 6c 73 20 77 68 69 |leTalk c|alls whi|
|00002ba0| 63 68 20 61 72 65 20 67 | 6f 69 6e 67 20 61 77 61 |ch are g|oing awa|
|00002bb0| 79 20 61 6e 64 20 61 6c | 6f 6e 67 20 77 69 74 68 |y and al|ong with|
|00002bc0| 20 74 68 65 69 72 20 50 | 72 65 66 65 72 72 65 64 | their P|referred|
|00002bd0| 20 63 6f 75 6e 74 65 72 | 70 61 72 74 2e 20 20 0d | counter|part. .|
|00002be0| 09 4f 6c 64 20 52 6f 75 | 74 69 6e 65 09 09 09 09 |.Old Rou|tine....|
|00002bf0| 50 72 65 66 65 72 72 65 | 64 20 52 6f 75 74 69 6e |Preferre|d Routin|
|00002c00| 65 0d 09 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 09 09 |e..-----|------..|
|00002c10| 09 09 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |..------|--------|
|00002c20| 2d 2d 2d 0d 09 4d 50 50 | 43 6c 6f 73 65 09 09 09 |---..MPP|Close...|
|00002c30| 09 43 6c 6f 73 65 44 72 | 69 76 65 72 0d 09 4c 41 |.CloseDr|iver..LA|
|00002c40| 50 4f 70 65 6e 50 72 6f | 74 6f 63 6f 6c 09 09 09 |POpenPro|tocol...|
|00002c50| 50 41 74 74 61 63 68 50 | 48 0d 09 4c 41 50 43 6c |PAttachP|H..LAPCl|
|00002c60| 6f 73 65 50 72 6f 74 6f | 63 6f 6c 09 09 09 50 43 |oseProto|col...PC|
|00002c70| 6c 6f 73 65 50 48 0d 09 | 4c 41 50 57 72 69 74 65 |losePH..|LAPWrite|
|00002c80| 09 09 09 09 50 57 72 69 | 74 65 4c 41 50 0d 09 4c |....PWri|teLAP..L|
|00002c90| 41 50 52 65 61 64 0d 09 | 4c 41 50 52 64 43 61 6e |APRead..|LAPRdCan|
|00002ca0| 63 65 6c 0d 09 44 44 50 | 4f 70 65 6e 53 6f 63 6b |cel..DDP|OpenSock|
|00002cb0| 65 74 09 09 09 50 4f 70 | 65 6e 53 6b 74 0d 09 44 |et...POp|enSkt..D|
|00002cc0| 44 50 43 6c 6f 73 65 53 | 6f 63 6b 65 74 09 09 09 |DPCloseS|ocket...|
|00002cd0| 50 43 6c 6f 73 65 53 6b | 74 0d 09 44 44 50 52 65 |PCloseSk|t..DDPRe|
|00002ce0| 61 64 0d 09 44 44 50 57 | 72 69 74 65 09 09 09 09 |ad..DDPW|rite....|
|00002cf0| 50 57 72 69 74 65 44 44 | 50 0d 09 44 44 50 52 64 |PWriteDD|P..DDPRd|
|00002d00| 43 61 6e 63 65 6c 0d 09 | 41 54 50 4f 70 65 6e 53 |Cancel..|ATPOpenS|
|00002d10| 6f 63 6b 65 74 09 09 09 | 50 4f 70 65 6e 41 54 50 |ocket...|POpenATP|
|00002d20| 53 6b 74 0d 09 41 54 50 | 43 6c 6f 73 65 53 6f 63 |Skt..ATP|CloseSoc|
|00002d30| 6b 65 74 09 09 09 50 43 | 6c 6f 73 65 41 54 50 53 |ket...PC|loseATPS|
|00002d40| 6b 74 0d 09 41 54 50 53 | 6e 64 52 65 71 75 65 73 |kt..ATPS|ndReques|
|00002d50| 74 09 09 09 50 53 65 6e | 64 52 65 71 75 65 73 74 |t...PSen|dRequest|
|00002d60| 0d 09 41 54 50 52 65 71 | 75 65 73 74 09 09 09 09 |..ATPReq|uest....|
|00002d70| 50 53 65 6e 64 52 65 71 | 75 65 73 74 0d 09 41 54 |PSendReq|uest..AT|
|00002d80| 50 52 65 71 43 61 6e 63 | 65 6c 09 09 09 50 4b 69 |PReqCanc|el...PKi|
|00002d90| 6c 6c 53 65 6e 64 52 65 | 71 0d 09 41 54 50 47 65 |llSendRe|q..ATPGe|
|00002da0| 74 52 65 71 75 65 73 74 | 09 09 09 50 47 65 74 52 |tRequest|...PGetR|
|00002db0| 65 71 75 65 73 74 0d 09 | 41 54 50 53 6e 64 52 73 |equest..|ATPSndRs|
|00002dc0| 70 09 09 09 09 50 53 65 | 6e 64 52 65 73 70 6f 6e |p....PSe|ndRespon|
|00002dd0| 73 65 0d 09 41 54 50 41 | 64 64 52 73 70 09 09 09 |se..ATPA|ddRsp...|
|00002de0| 09 50 41 64 64 52 65 73 | 70 6f 6e 73 65 0d 09 41 |.PAddRes|ponse..A|
|00002df0| 54 50 52 65 73 70 6f 6e | 73 65 09 09 09 50 53 65 |TPRespon|se...PSe|
|00002e00| 6e 64 52 65 73 70 6f 6e | 73 65 0d 09 41 54 50 52 |ndRespon|se..ATPR|
|00002e10| 73 70 43 61 6e 63 65 6c | 09 09 09 50 52 65 6c 52 |spCancel|...PRelR|
|00002e20| 73 70 43 42 0d 09 4e 42 | 50 52 65 67 69 73 74 65 |spCB..NB|PRegiste|
|00002e30| 72 09 09 09 09 50 52 65 | 67 69 73 74 65 72 4e 61 |r....PRe|gisterNa|
|00002e40| 6d 65 0d 09 4e 42 50 4c | 6f 6f 6b 75 70 09 09 09 |me..NBPL|ookup...|
|00002e50| 09 50 4c 6f 6f 6b 75 70 | 4e 61 6d 65 0d 09 4e 42 |.PLookup|Name..NB|
|00002e60| 50 43 6f 6e 66 69 72 6d | 09 09 09 09 50 43 6f 6e |PConfirm|....PCon|
|00002e70| 66 69 72 6d 4e 61 6d 65 | 0d 09 4e 42 50 52 65 6d |firmName|..NBPRem|
|00002e80| 6f 76 65 09 09 09 09 50 | 52 65 6d 6f 76 65 4e 61 |ove....P|RemoveNa|
|00002e90| 6d 65 0d 09 4e 42 50 4c | 6f 61 64 09 09 09 09 6f |me..NBPL|oad....o|
|00002ea0| 75 74 64 61 74 65 64 0d | 09 4e 42 50 55 6e 6c 6f |utdated.|.NBPUnlo|
|00002eb0| 61 64 09 09 09 09 6f 75 | 74 64 61 74 65 64 0d 49 |ad....ou|tdated.I|
|00002ec0| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 20 |nside Ma|cintosh |
|00002ed0| 56 6f 6c 75 6d 65 20 49 | 49 2c 20 70 72 65 73 65 |Volume I|I, prese|
|00002ee0| 6e 74 73 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 69 |nts addi|tional i|
|00002ef0| 6e 74 65 72 66 61 63 65 | 20 66 75 6e 63 74 69 6f |nterface| functio|
|00002f00| 6e 73 20 77 68 69 63 68 | 20 61 72 65 20 61 76 61 |ns which| are ava|
|00002f10| 69 6c 61 62 6c 65 20 74 | 68 72 6f 75 67 68 20 4d |ilable t|hrough M|
|00002f20| 50 57 20 67 6c 75 65 20 | 69 6e 20 74 68 65 20 49 |PW glue |in the I|
|00002f30| 6e 74 65 72 66 61 63 65 | 2e 6f 20 6c 69 62 72 61 |nterface|.o libra|
|00002f40| 72 79 2c 20 61 6e 64 20 | 61 72 65 20 6f 66 20 64 |ry, and |are of d|
|00002f50| 75 62 69 6f 75 73 20 76 | 61 6c 75 65 2e 20 20 54 |ubious v|alue. T|
|00002f60| 68 65 79 20 61 72 65 3a | 0d 09 a5 20 4d 50 50 4f |hey are:|... MPPO|
|00002f70| 70 65 6e 20 2d 20 59 6f | 75 20 73 68 6f 75 6c 64 |pen - Yo|u should|
|00002f80| 20 69 6e 73 74 65 61 64 | 20 75 73 65 20 4f 70 65 | instead| use Ope|
|00002f90| 6e 44 72 69 76 65 72 28 | 27 2e 4d 50 50 27 2c 20 |nDriver(|'.MPP', |
|00002fa0| 72 65 66 4e 75 6d 29 20 | 74 6f 20 6f 70 65 6e 20 |refNum) |to open |
|00002fb0| 74 68 65 20 2e 4d 50 50 | 20 64 72 69 76 65 72 20 |the .MPP| driver |
|00002fc0| 77 68 69 63 68 20 61 6c | 73 6f 20 6d 61 6b 65 73 |which al|so makes|
|00002fd0| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 68 65 20 64 | availab|le the d|
|00002fe0| 72 69 76 65 72 20 72 65 | 66 4e 75 6d 2e 0d 09 a5 |river re|fNum....|
|00002ff0| 20 41 54 50 4c 6f 61 64 | 20 2d 20 6f 70 65 6e 69 | ATPLoad| - openi|
|00003000| 6e 67 20 74 68 65 20 2e | 4d 50 50 20 64 72 69 76 |ng the .|MPP driv|
|00003010| 65 72 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |er autom|atically|
|00003020| 20 6c 6f 61 64 73 20 74 | 68 65 20 2e 41 54 50 20 | loads t|he .ATP |
|00003030| 64 72 69 76 65 72 2e 0d | 09 a5 20 41 54 50 55 6e |driver..|.. ATPUn|
|00003040| 6c 6f 61 64 20 2d 20 6f | 6e 65 20 73 68 6f 75 6c |load - o|ne shoul|
|00003050| 64 20 6e 6f 74 20 62 65 | 20 75 6e 6c 6f 61 64 69 |d not be| unloadi|
|00003060| 6e 67 20 74 68 65 20 2e | 41 54 50 20 64 72 69 76 |ng the .|ATP driv|
|00003070| 65 72 2e 20 20 49 6e 20 | 61 64 64 69 74 69 6f 6e |er. In |addition|
|00003080| 2c 20 74 68 69 73 20 66 | 75 6e 63 74 69 6f 6e 20 |, this f|unction |
|00003090| 61 70 70 6c 69 65 73 20 | 6f 6e 6c 79 20 74 6f 20 |applies |only to |
|000030a0| 74 68 65 20 4d 61 63 69 | 6e 74 6f 73 68 20 31 32 |the Maci|ntosh 12|
|000030b0| 38 4b 0d 09 a5 20 47 65 | 74 4e 6f 64 65 41 64 64 |8K... Ge|tNodeAdd|
|000030c0| 72 65 73 73 20 2d 20 49 | 74 20 69 73 20 70 72 65 |ress - I|t is pre|
|000030d0| 66 65 72 61 62 6c 65 20 | 74 6f 20 75 73 65 20 74 |ferable |to use t|
|000030e0| 68 65 20 50 47 65 74 41 | 70 70 6c 65 54 61 6c 6b |he PGetA|ppleTalk|
|000030f0| 49 6e 66 6f 20 66 75 6e | 63 74 69 6f 6e 20 74 6f |Info fun|ction to|
|00003100| 20 6f 62 74 61 69 6e 20 | 74 68 65 20 6e 65 74 77 | obtain |the netw|
|00003110| 6f 72 6b 20 61 6e 64 20 | 6e 6f 64 65 20 6e 75 6d |ork and |node num|
|00003120| 62 65 72 2e 20 20 47 65 | 74 4e 6f 64 65 41 64 64 |ber. Ge|tNodeAdd|
|00003130| 72 65 73 73 20 61 63 63 | 65 73 73 65 73 20 6c 6f |ress acc|esses lo|
|00003140| 77 20 6d 65 6d 6f 72 79 | 20 67 6c 6f 62 61 6c 73 |w memory| globals|
|00003150| 2e 20 20 50 47 65 74 41 | 70 70 6c 65 54 61 6c 6b |. PGetA|ppleTalk|
|00003160| 49 6e 66 6f 20 77 69 6c | 6c 20 62 65 20 65 61 73 |Info wil|l be eas|
|00003170| 69 65 72 20 74 6f 20 73 | 75 70 70 6f 72 74 20 69 |ier to s|upport i|
|00003180| 6e 20 74 68 65 20 66 75 | 74 75 72 65 2e 0d 09 a5 |n the fu|ture....|
|00003190| 20 49 73 4d 50 50 4f 70 | 65 6e 20 2d 20 61 63 63 | IsMPPOp|en - acc|
|000031a0| 65 73 73 65 73 20 61 20 | 6c 6f 77 20 6d 65 6d 6f |esses a |low memo|
|000031b0| 72 79 20 67 6c 6f 62 61 | 6c 2e 20 20 49 6e 73 74 |ry globa|l. Inst|
|000031c0| 65 61 64 20 75 73 65 20 | 74 68 65 20 4f 70 65 6e |ead use |the Open|
|000031d0| 44 72 69 76 65 72 20 66 | 75 6e 63 74 69 6f 6e 20 |Driver f|unction |
|000031e0| 74 6f 20 6f 70 65 6e 20 | 74 68 65 20 2e 4d 50 50 |to open |the .MPP|
|000031f0| 20 64 72 69 76 65 72 2e | 20 20 59 6f 75 20 63 61 | driver.| You ca|
|00003200| 6e 20 61 6c 73 6f 20 75 | 73 65 20 74 68 65 20 47 |n also u|se the G|
|00003210| 65 73 74 61 6c 74 20 66 | 75 6e 63 74 69 6f 6e 20 |estalt f|unction |
|00003220| 77 69 74 68 20 74 68 65 | 20 67 65 73 74 61 6c 74 |with the| gestalt|
|00003230| 41 70 70 6c 65 54 61 6c | 6b 56 65 72 73 69 6f 6e |AppleTal|kVersion|
|00003240| 20 73 65 6c 65 63 74 6f | 72 20 74 6f 20 66 69 6e | selecto|r to fin|
|00003250| 64 20 6f 75 74 20 69 66 | 20 74 68 65 20 2e 4d 50 |d out if| the .MP|
|00003260| 50 20 64 72 69 76 65 72 | 20 69 73 20 6f 70 65 6e |P driver| is open|
|00003270| 2e 20 20 52 65 66 65 72 | 20 74 6f 20 74 68 65 20 |. Refer| to the |
|00003280| 41 70 70 6c 65 54 61 6c | 6b 56 65 72 73 69 6f 6e |AppleTal|kVersion|
|00003290| 20 73 61 6d 70 6c 65 20 | 66 75 6e 63 74 69 6f 6e | sample |function|
|000032a0| 20 6c 69 73 74 65 64 20 | 62 65 6c 6f 77 2e 0d 09 | listed |below...|
|000032b0| a5 20 49 73 41 54 50 4f | 70 65 6e 20 2d 20 74 68 |. IsATPO|pen - th|
|000032c0| 65 20 2e 41 54 50 20 64 | 72 69 76 65 72 20 69 73 |e .ATP d|river is|
|000032d0| 20 6f 70 65 6e 20 69 66 | 20 74 68 65 20 2e 4d 50 | open if| the .MP|
|000032e0| 50 20 64 72 69 76 65 72 | 20 69 73 20 6f 70 65 6e |P driver| is open|
|000032f0| 2e 0d 54 68 65 20 6f 6e | 6c 79 20 66 75 6e 63 74 |..The on|ly funct|
|00003300| 69 6f 6e 20 77 68 69 63 | 68 20 69 73 20 73 74 69 |ion whic|h is sti|
|00003310| 6c 6c 20 75 73 65 66 75 | 6c 20 61 6d 6f 6e 67 20 |ll usefu|l among |
|00003320| 74 68 65 20 67 6c 75 65 | 20 72 6f 75 74 69 6e 65 |the glue| routine|
|00003330| 73 20 66 72 6f 6d 20 74 | 68 65 20 41 42 20 70 61 |s from t|he AB pa|
|00003340| 63 6b 61 67 65 20 69 73 | 20 74 68 65 20 4e 42 50 |ckage is| the NBP|
|00003350| 45 78 74 72 61 63 74 20 | 66 75 6e 63 74 69 6f 6e |Extract |function|
|00003360| 2e 0d 54 68 65 20 27 61 | 74 6b 76 27 20 47 65 73 |..The 'a|tkv' Ges|
|00003370| 74 61 6c 74 20 53 65 6c | 65 63 74 6f 72 0d 54 68 |talt Sel|ector.Th|
|00003380| 65 20 27 61 74 6b 76 27 | 20 47 65 73 74 61 6c 74 |e 'atkv'| Gestalt|
|00003390| 20 73 65 6c 65 63 74 6f | 72 20 69 73 20 61 76 61 | selecto|r is ava|
|000033a0| 69 6c 61 62 6c 65 20 62 | 65 67 69 6e 6e 69 6e 67 |ilable b|eginning|
|000033b0| 20 77 69 74 68 20 41 70 | 70 6c 65 54 61 6c 6b 20 | with Ap|pleTalk |
|000033c0| 76 65 72 73 69 6f 6e 20 | 35 36 20 74 6f 20 70 72 |version |56 to pr|
|000033d0| 6f 76 69 64 65 20 6d 6f | 72 65 20 63 6f 6d 70 6c |ovide mo|re compl|
|000033e0| 65 74 65 20 76 65 72 73 | 69 6f 6e 20 69 6e 66 6f |ete vers|ion info|
|000033f0| 72 6d 61 74 69 6f 6e 20 | 72 65 67 61 72 64 69 6e |rmation |regardin|
|00003400| 67 20 41 70 70 6c 65 54 | 61 6c 6b 2c 20 61 6e 64 |g AppleT|alk, and|
|00003410| 20 61 73 20 61 6e 20 61 | 6c 74 65 72 6e 61 74 69 | as an a|lternati|
|00003420| 76 65 20 74 6f 20 74 68 | 65 20 65 78 69 73 74 69 |ve to th|e existi|
|00003430| 6e 67 20 27 61 74 6c 6b | 27 20 47 65 73 74 61 6c |ng 'atlk|' Gestal|
|00003440| 74 20 73 65 6c 65 63 74 | 6f 72 2e 20 42 65 67 69 |t select|or. Begi|
|00003450| 6e 6e 69 6e 67 20 77 69 | 74 68 20 41 70 70 6c 65 |nning wi|th Apple|
|00003460| 54 61 6c 6b 20 76 65 72 | 73 69 6f 6e 20 35 34 2c |Talk ver|sion 54,|
|00003470| 20 74 68 65 20 27 61 74 | 6c 6b 27 20 47 65 73 74 | the 'at|lk' Gest|
|00003480| 61 6c 74 20 73 65 6c 65 | 63 74 6f 72 20 77 61 73 |alt sele|ctor was|
|00003490| 20 61 76 61 69 6c 61 62 | 6c 65 20 74 6f 20 70 72 | availab|le to pr|
|000034a0| 6f 76 69 64 65 20 62 61 | 73 69 63 20 76 65 72 73 |ovide ba|sic vers|
|000034b0| 69 6f 6e 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 2e |ion info|rmation.|
|000034c0| 20 54 68 65 20 27 61 74 | 6c 6b 27 20 73 65 6c 65 | The 'at|lk' sele|
|000034d0| 63 74 6f 72 20 69 73 20 | 6e 6f 74 20 61 76 61 69 |ctor is |not avai|
|000034e0| 6c 61 62 6c 65 20 77 68 | 65 6e 20 41 70 70 6c 65 |lable wh|en Apple|
|000034f0| 54 61 6c 6b 20 69 73 20 | 74 75 72 6e 65 64 20 6f |Talk is |turned o|
|00003500| 66 66 20 69 6e 20 74 68 | 65 20 43 68 6f 6f 73 65 |ff in th|e Choose|
|00003510| 72 2e 20 49 74 20 69 73 | 20 69 6d 70 6f 72 74 61 |r. It is| importa|
|00003520| 6e 74 20 74 6f 20 6e 6f | 74 65 20 74 68 61 74 20 |nt to no|te that |
|00003530| 74 68 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |the info|rmation |
|00003540| 62 65 74 77 65 65 6e 20 | 74 68 65 20 74 77 6f 20 |between |the two |
|00003550| 72 65 73 6f 75 72 63 65 | 73 20 69 73 20 70 72 6f |resource|s is pro|
|00003560| 76 69 64 65 64 20 69 6e | 20 61 20 64 69 66 66 65 |vided in| a diffe|
|00003570| 72 65 6e 74 20 6d 61 6e | 6e 65 72 2e 20 43 61 6c |rent man|ner. Cal|
|00003580| 6c 69 6e 67 20 47 65 73 | 74 61 6c 74 20 77 69 74 |ling Ges|talt wit|
|00003590| 68 20 74 68 65 20 27 61 | 74 6c 6b 27 20 73 65 6c |h the 'a|tlk' sel|
|000035a0| 65 63 74 6f 72 20 70 72 | 6f 76 69 64 65 73 20 74 |ector pr|ovides t|
|000035b0| 68 65 20 6d 61 6a 6f 72 | 20 72 65 76 69 73 69 6f |he major| revisio|
|000035c0| 6e 20 76 65 72 73 69 6f | 6e 20 69 6e 66 6f 72 6d |n versio|n inform|
|000035d0| 61 74 69 6f 6e 20 69 6e | 20 74 68 65 20 6c 6f 77 |ation in| the low|
|000035e0| 2d 6f 72 64 65 72 20 62 | 79 74 65 20 6f 66 20 74 |-order b|yte of t|
|000035f0| 68 65 20 66 75 6e 63 74 | 69 6f 6e 20 72 65 73 75 |he funct|ion resu|
|00003600| 6c 74 2e 20 43 61 6c 6c | 69 6e 67 20 47 65 73 74 |lt. Call|ing Gest|
|00003610| 61 6c 74 20 77 69 74 68 | 20 74 68 65 20 27 61 74 |alt with| the 'at|
|00003620| 6b 76 27 20 73 65 6c 65 | 63 74 6f 72 20 70 72 6f |kv' sele|ctor pro|
|00003630| 76 69 64 65 73 20 74 68 | 65 20 76 65 72 73 69 6f |vides th|e versio|
|00003640| 6e 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 6e |n inform|ation in|
|00003650| 20 61 20 6d 61 6e 6e 65 | 72 20 73 69 6d 69 6c 61 | a manne|r simila|
|00003660| 72 20 74 6f 20 74 68 65 | 20 27 76 65 72 73 27 20 |r to the| 'vers' |
|00003670| 72 65 73 6f 75 72 63 65 | 2e 20 54 68 65 20 66 6f |resource|. The fo|
|00003680| 72 6d 61 74 20 6f 66 20 | 74 68 65 20 4c 4f 4e 47 |rmat of |the LONG|
|00003690| 49 4e 54 20 72 65 73 75 | 6c 74 20 69 73 20 61 73 |INT resu|lt is as|
|000036a0| 20 66 6f 6c 6c 6f 77 73 | 3a 0d 09 62 79 74 65 3b | follows|:..byte;|
|000036b0| 09 09 09 09 09 09 2f 2a | 20 4d 61 6a 6f 72 20 72 |....../*| Major r|
|000036c0| 65 76 69 73 69 6f 6e 20 | 2a 2f 0d 09 62 79 74 65 |evision |*/..byte|
|000036d0| 3b 09 09 09 09 09 09 2f | 2a 20 4d 69 6e 6f 72 20 |;....../|* Minor |
|000036e0| 72 65 76 69 73 69 6f 6e | 20 2a 2f 0d 09 62 79 74 |revision| */..byt|
|000036f0| 65 09 09 64 65 76 65 6c | 6f 70 6d 65 6e 74 20 3d |e..devel|opment =|
|00003700| 20 30 78 32 30 2c 09 2f | 2a 20 52 65 6c 65 61 73 | 0x20,./|* Releas|
|00003710| 65 20 73 74 61 67 65 20 | 20 2a 2f 0d 09 09 09 61 |e stage | */....a|
|00003720| 6c 70 68 61 20 3d 20 30 | 78 34 30 2c 0d 09 09 09 |lpha = 0|x40,....|
|00003730| 62 65 74 61 20 3d 20 30 | 78 36 30 2c 0d 09 09 09 |beta = 0|x60,....|
|00003740| 66 69 6e 61 6c 20 3d 20 | 30 78 38 30 2c 20 2f 2a |final = |0x80, /*|
|00003750| 20 6f 72 20 2a 2f 20 72 | 65 6c 65 61 73 65 20 3d | or */ r|elease =|
|00003760| 20 30 78 38 30 3b 0d 09 | 62 79 74 65 3b 09 09 09 | 0x80;..|byte;...|
|00003770| 09 09 09 2f 2a 20 4e 6f | 6e 66 69 6e 61 6c 20 72 |.../* No|nfinal r|
|00003780| 65 6c 65 61 73 65 20 23 | 20 2a 2f 0d 09 0d 46 6f |elease #| */...Fo|
|00003790| 72 20 65 78 61 6d 70 6c | 65 2c 20 70 61 73 73 69 |r exampl|e, passi|
|000037a0| 6e 67 20 74 68 65 20 27 | 61 74 6b 76 27 20 73 65 |ng the '|atkv' se|
|000037b0| 6c 65 63 74 6f 72 20 69 | 6e 20 61 20 47 65 73 74 |lector i|n a Gest|
|000037c0| 61 6c 74 20 63 61 6c 6c | 20 75 6e 64 65 72 20 41 |alt call| under A|
|000037d0| 70 70 6c 65 54 61 6c 6b | 20 76 65 72 73 69 6f 6e |ppleTalk| version|
|000037e0| 20 35 37 20 67 69 76 65 | 73 20 74 68 65 20 66 6f | 57 give|s the fo|
|000037f0| 6c 6c 6f 77 69 6e 67 20 | 4c 4f 4e 47 49 4e 54 20 |llowing |LONGINT |
|00003800| 72 65 73 75 6c 74 3a 20 | 30 78 33 39 30 30 38 30 |result: |0x390080|
|00003810| 30 30 2e 0d 4e 6f 74 65 | 3a 20 57 69 74 68 20 74 |00..Note|: With t|
|00003820| 68 65 20 72 65 6c 65 61 | 73 65 20 6f 66 20 74 68 |he relea|se of th|
|00003830| 65 20 53 79 73 74 65 6d | 20 37 20 54 75 6e 65 72 |e System| 7 Tuner|
|00003840| 20 70 72 6f 64 75 63 74 | 2c 20 41 70 70 6c 65 54 | product|, AppleT|
|00003850| 61 6c 6b 20 77 69 6c 6c | 20 6e 6f 74 20 62 65 20 |alk will| not be |
|00003860| 6c 6f 61 64 65 64 20 61 | 74 20 73 74 61 72 74 75 |loaded a|t startu|
|00003870| 70 2c 20 69 66 20 70 72 | 69 6f 72 20 74 6f 20 74 |p, if pr|ior to t|
|00003880| 68 65 20 70 72 65 76 69 | 6f 75 73 20 73 68 75 74 |he previ|ous shut|
|00003890| 64 6f 77 6e 20 41 70 70 | 6c 65 54 61 6c 6b 20 77 |down App|leTalk w|
|000038a0| 61 73 20 74 75 72 6e 65 | 64 20 6f 66 66 20 69 6e |as turne|d off in|
|000038b0| 20 74 68 65 20 43 68 6f | 6f 73 65 72 2e 20 55 6e | the Cho|oser. Un|
|000038c0| 64 65 72 20 74 68 69 73 | 20 63 69 72 63 75 6d 73 |der this| circums|
|000038d0| 74 61 6e 63 65 2c 20 74 | 68 65 20 27 61 74 6b 76 |tance, t|he 'atkv|
|000038e0| 27 20 73 65 6c 65 63 74 | 6f 72 20 69 73 20 6e 6f |' select|or is no|
|000038f0| 74 20 61 76 61 69 6c 61 | 62 6c 65 2e 20 49 66 20 |t availa|ble. If |
|00003900| 74 68 65 20 27 61 74 6b | 76 27 20 73 65 6c 65 63 |the 'atk|v' selec|
|00003910| 74 6f 72 20 69 73 20 6e | 6f 74 20 61 76 61 69 6c |tor is n|ot avail|
|00003920| 61 62 6c 65 20 75 6e 64 | 65 72 20 53 79 73 74 65 |able und|er Syste|
|00003930| 6d 20 37 2c 20 74 68 69 | 73 20 69 73 20 61 6e 20 |m 7, thi|s is an |
|00003940| 69 6e 64 69 63 61 74 6f | 72 20 74 68 61 74 20 41 |indicato|r that A|
|00003950| 70 70 6c 65 54 61 6c 6b | 20 63 61 6e 6e 6f 74 20 |ppleTalk| cannot |
|00003960| 62 65 20 74 75 72 6e 65 | 64 20 6f 6e 20 77 69 74 |be turne|d on wit|
|00003970| 68 6f 75 74 20 64 6f 69 | 6e 67 20 73 6f 20 69 6e |hout doi|ng so in|
|00003980| 20 74 68 65 20 43 68 6f | 6f 73 65 72 20 61 6e 64 | the Cho|oser and|
|00003990| 20 72 65 62 6f 6f 74 69 | 6e 67 20 74 68 65 20 73 | rebooti|ng the s|
|000039a0| 79 73 74 65 6d 2e 0d 53 | 61 6d 70 6c 65 20 53 6f |ystem..S|ample So|
|000039b0| 63 6b 65 74 20 4c 69 73 | 74 65 6e 65 72 0d 54 68 |cket Lis|tener.Th|
|000039c0| 65 20 70 72 65 66 65 72 | 72 65 64 20 41 70 70 6c |e prefer|red Appl|
|000039d0| 65 54 61 6c 6b 20 63 61 | 6c 6c 73 20 70 72 65 73 |eTalk ca|lls pres|
|000039e0| 65 6e 74 65 64 20 69 6e | 20 49 6e 73 69 64 65 20 |ented in| Inside |
|000039f0| 4d 61 63 69 6e 74 6f 73 | 68 20 56 6f 6c 75 6d 65 |Macintos|h Volume|
|00003a00| 20 56 2c 20 70 61 67 65 | 20 35 31 33 2c 20 64 6f | V, page| 513, do|
|00003a10| 20 6e 6f 74 20 69 6e 63 | 6c 75 64 65 20 61 20 70 | not inc|lude a p|
|00003a20| 72 65 66 65 72 72 65 64 | 20 73 74 79 6c 65 20 63 |referred| style c|
|00003a30| 61 6c 6c 20 66 6f 72 20 | 44 44 50 52 65 61 64 2e |all for |DDPRead.|
|00003a40| 20 41 73 20 61 20 72 65 | 73 75 6c 74 20 64 65 76 | As a re|sult dev|
|00003a50| 65 6c 6f 70 65 72 73 20 | 61 72 65 20 66 61 63 65 |elopers |are face|
|00003a60| 64 20 77 69 74 68 20 74 | 68 65 20 70 72 6f 73 70 |d with t|he prosp|
|00003a70| 65 63 74 20 6f 66 20 77 | 72 69 74 69 6e 67 20 74 |ect of w|riting t|
|00003a80| 68 65 69 72 20 73 6f 63 | 6b 65 74 20 6c 69 73 74 |heir soc|ket list|
|00003a90| 65 6e 65 72 73 20 61 6e | 64 20 75 73 69 6e 67 20 |eners an|d using |
|00003aa0| 74 68 65 20 50 4f 70 65 | 6e 53 6b 74 20 66 75 6e |the POpe|nSkt fun|
|00003ab0| 63 74 69 6f 6e 20 77 68 | 65 6e 20 75 70 67 72 61 |ction wh|en upgra|
|00003ac0| 64 69 6e 67 20 74 68 65 | 69 72 20 70 72 6f 67 72 |ding the|ir progr|
|00003ad0| 61 6d 73 2e 20 49 6e 73 | 69 64 65 20 4d 61 63 69 |ams. Ins|ide Maci|
|00003ae0| 6e 74 6f 73 68 20 56 6f | 6c 75 6d 65 20 49 49 2c |ntosh Vo|lume II,|
|00003af0| 20 70 61 67 65 20 33 32 | 34 2c 20 70 72 65 73 65 | page 32|4, prese|
|00003b00| 6e 74 73 20 61 6e 20 6f | 76 65 72 76 69 65 77 20 |nts an o|verview |
|00003b10| 6f 66 20 68 6f 77 20 73 | 6f 63 6b 65 74 20 6c 69 |of how s|ocket li|
|00003b20| 73 74 65 6e 65 72 73 20 | 73 68 6f 75 6c 64 20 66 |steners |should f|
|00003b30| 75 6e 63 74 69 6f 6e 2e | 20 20 49 6e 73 69 64 65 |unction.| Inside|
|00003b40| 20 4d 61 63 69 6e 74 6f | 73 68 20 73 74 61 74 65 | Macinto|sh state|
|00003b50| 73 20 74 68 61 74 20 73 | 6f 63 6b 65 74 20 6c 69 |s that s|ocket li|
|00003b60| 73 74 65 6e 65 72 73 2c | 20 61 73 20 77 65 6c 6c |steners,| as well|
|00003b70| 20 61 73 20 70 72 6f 74 | 6f 63 6f 6c 20 68 61 6e | as prot|ocol han|
|00003b80| 64 6c 65 72 73 2c 20 6e | 65 65 64 20 74 6f 20 62 |dlers, n|eed to b|
|00003b90| 65 20 77 72 69 74 74 65 | 6e 20 69 6e 20 61 73 73 |e writte|n in ass|
|00003ba0| 65 6d 62 6c 79 20 63 6f | 64 65 2c 20 73 69 6e 63 |embly co|de, sinc|
|00003bb0| 65 20 70 61 72 61 6d 65 | 74 65 72 73 20 61 72 65 |e parame|ters are|
|00003bc0| 20 70 61 73 73 65 64 20 | 69 6e 20 72 65 67 69 73 | passed |in regis|
|00003bd0| 74 65 72 73 2e 20 54 6f | 20 61 73 73 69 73 74 20 |ters. To| assist |
|00003be0| 68 69 67 68 2d 6c 65 76 | 65 6c 20 70 72 6f 67 72 |high-lev|el progr|
|00003bf0| 61 6d 6d 65 72 73 20 77 | 69 74 68 20 69 6d 70 6c |ammers w|ith impl|
|00003c00| 65 6d 65 6e 74 69 6e 67 | 20 61 20 73 6f 63 6b 65 |ementing| a socke|
|00003c10| 74 20 6c 69 73 74 65 6e | 65 72 2c 20 74 68 65 20 |t listen|er, the |
|00003c20| 67 65 6e 65 72 69 63 20 | 6c 69 73 74 65 6e 65 72 |generic |listener|
|00003c30| 20 63 6f 64 65 20 69 73 | 20 70 72 6f 76 69 64 65 | code is| provide|
|00003c40| 64 2e 20 54 68 65 20 66 | 6f 6c 6c 6f 77 69 6e 67 |d. The f|ollowing|
|00003c50| 20 63 6f 64 65 20 64 65 | 6d 6f 6e 73 74 72 61 74 | code de|monstrat|
|00003c60| 65 73 20 68 6f 77 20 74 | 6f 20 64 6f 20 74 68 65 |es how t|o do the|
|00003c70| 20 66 6f 6c 6c 6f 77 69 | 6e 67 3a 0d a5 09 62 75 | followi|ng:...bu|
|00003c80| 66 66 65 72 20 6d 75 6c | 74 69 70 6c 65 20 70 61 |ffer mul|tiple pa|
|00003c90| 63 6b 65 74 73 0d a5 09 | 72 65 74 75 72 6e 20 44 |ckets...|return D|
|00003ca0| 44 50 2f 4c 41 50 20 68 | 65 61 64 65 72 20 69 6e |DP/LAP h|eader in|
|00003cb0| 66 6f 72 6d 61 74 69 6f | 6e 20 74 68 61 74 20 68 |formatio|n that h|
|00003cc0| 61 73 20 61 6c 72 65 61 | 64 79 20 62 65 65 6e 20 |as alrea|dy been |
|00003cd0| 72 65 61 64 20 69 6e 74 | 6f 20 74 68 65 20 52 65 |read int|o the Re|
|00003ce0| 61 64 20 48 65 61 64 65 | 72 20 41 72 65 61 20 28 |ad Heade|r Area (|
|00003cf0| 52 48 41 29 20 62 79 20 | 44 44 50 0d a5 09 63 61 |RHA) by |DDP...ca|
|00003d00| 6c 63 75 6c 61 74 65 20 | 61 6e 64 20 63 6f 6d 70 |lculate |and comp|
|00003d10| 61 72 65 20 74 68 65 20 | 70 61 63 6b 65 74 20 63 |are the |packet c|
|00003d20| 68 65 63 6b 73 75 6d 20 | 77 68 65 6e 20 61 20 70 |hecksum |when a p|
|00003d30| 61 63 6b 65 74 20 75 73 | 65 73 20 61 20 6c 6f 6e |acket us|es a lon|
|00003d40| 67 20 44 44 50 20 68 65 | 61 64 65 72 2c 20 61 6e |g DDP he|ader, an|
|00003d50| 64 20 69 6e 63 6c 75 64 | 65 73 20 74 68 65 20 63 |d includ|es the c|
|00003d60| 68 65 63 6b 73 75 6d 20 | 76 61 6c 75 65 0d 53 6f |hecksum |value.So|
|00003d70| 6d 65 20 6f 66 20 74 68 | 65 20 74 68 69 6e 67 73 |me of th|e things|
|00003d80| 20 74 68 61 74 20 74 68 | 65 20 6c 69 73 74 65 6e | that th|e listen|
|00003d90| 65 72 20 73 61 6d 70 6c | 65 20 64 6f 65 73 20 6e |er sampl|e does n|
|00003da0| 6f 74 20 64 6f 2c 20 77 | 68 69 63 68 20 79 6f 75 |ot do, w|hich you|
|00003db0| 20 6d 69 67 68 74 20 77 | 69 73 68 20 74 6f 20 69 | might w|ish to i|
|00003dc0| 6d 70 6c 65 6d 65 6e 74 | 2c 20 61 72 65 20 74 68 |mplement|, are th|
|00003dd0| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 3a 0d a5 09 43 |e follow|ing:...C|
|00003de0| 68 65 63 6b 20 74 68 65 | 20 44 44 50 20 74 79 70 |heck the| DDP typ|
|00003df0| 65 20 61 6e 64 20 69 67 | 6e 6f 72 65 20 61 6e 79 |e and ig|nore any|
|00003e00| 20 70 61 63 6b 65 74 73 | 20 74 68 61 74 20 64 6f | packets| that do|
|00003e10| 6e d5 74 20 6d 61 74 63 | 68 20 74 68 65 20 64 65 |n.t matc|h the de|
|00003e20| 73 69 72 65 64 20 74 79 | 70 65 28 73 29 20 74 68 |sired ty|pe(s) th|
|00003e30| 61 74 20 79 6f 75 d5 72 | 65 20 69 6e 74 65 72 65 |at you.r|e intere|
|00003e40| 73 74 65 64 20 69 6e 2e | 0d a5 09 43 68 65 63 6b |sted in.|...Check|
|00003e50| 20 74 68 65 20 73 6f 75 | 72 63 65 20 6e 6f 64 65 | the sou|rce node|
|00003e60| 20 49 44 20 61 6e 64 20 | 69 67 6e 6f 72 65 20 61 | ID and |ignore a|
|00003e70| 6e 79 20 70 61 63 6b 65 | 74 73 20 74 68 61 74 20 |ny packe|ts that |
|00003e80| 64 6f 6e d5 74 20 63 6f | 6d 65 20 66 72 6f 6d 20 |don.t co|me from |
|00003e90| 74 68 65 20 64 65 73 69 | 72 65 64 20 6e 6f 64 65 |the desi|red node|
|00003ea0| 28 73 29 2e 0d a5 09 49 | 66 20 74 68 65 20 73 6f |(s)....I|f the so|
|00003eb0| 63 6b 65 74 20 6c 69 73 | 74 65 6e 65 72 20 69 73 |cket lis|tener is|
|00003ec0| 20 75 73 65 64 20 62 79 | 20 6d 6f 72 65 20 74 68 | used by| more th|
|00003ed0| 61 6e 20 6f 6e 65 20 73 | 6f 63 6b 65 74 2c 20 69 |an one s|ocket, i|
|00003ee0| 74 20 63 6f 75 6c 64 20 | 72 6f 75 74 65 20 74 68 |t could |route th|
|00003ef0| 65 20 70 61 63 6b 65 74 | 73 20 64 69 66 66 65 72 |e packet|s differ|
|00003f00| 65 6e 74 6c 79 20 62 61 | 73 65 64 20 6f 6e 20 74 |ently ba|sed on t|
|00003f10| 68 65 20 73 6f 63 6b 65 | 74 20 6e 75 6d 62 65 72 |he socke|t number|
|00003f20| 20 66 6f 75 6e 64 20 69 | 6e 20 44 30 2e 0d a5 09 | found i|n D0....|
|00003f30| 54 68 65 20 73 6f 63 6b | 65 74 20 6c 69 73 74 65 |The sock|et liste|
|00003f40| 6e 65 72 20 64 6f 65 73 | 20 6e 6f 74 20 68 61 6e |ner does| not han|
|00003f50| 64 6c 65 20 74 68 65 20 | 69 6d 70 6c 65 6d 65 6e |dle the |implemen|
|00003f60| 74 61 74 69 6f 6e 20 6f | 66 20 61 20 63 6f 6d 70 |tation o|f a comp|
|00003f70| 6c 65 74 69 6f 6e 20 72 | 6f 75 74 69 6e 65 20 74 |letion r|outine t|
|00003f80| 6f 20 62 65 20 65 78 65 | 63 75 74 65 64 20 77 68 |o be exe|cuted wh|
|00003f90| 65 6e 20 74 68 65 20 70 | 61 63 6b 65 74 20 69 73 |en the p|acket is|
|00003fa0| 20 70 72 6f 63 65 73 73 | 65 64 2e 0d 54 68 65 20 | process|ed..The |
|00003fb0| 65 78 61 6d 70 6c 65 20 | 6c 69 73 74 65 6e 65 72 |example |listener|
|00003fc0| 20 63 6f 64 65 20 69 6e | 63 6c 75 64 65 73 20 61 | code in|cludes a|
|00003fd0| 6e 20 69 6e 69 74 69 61 | 6c 69 7a 61 74 69 6f 6e |n initia|lization|
|00003fe0| 20 72 6f 75 74 69 6e 65 | 20 77 68 69 63 68 20 74 | routine| which t|
|00003ff0| 68 65 20 6c 69 73 74 65 | 6e 65 72 20 63 6c 69 65 |he liste|ner clie|
|00004000| 6e 74 20 75 73 65 73 20 | 74 6f 20 6e 6f 74 69 66 |nt uses |to notif|
|00004010| 79 20 74 68 65 20 6c 69 | 73 74 65 6e 65 72 20 63 |y the li|stener c|
|00004020| 6f 64 65 20 6f 66 20 74 | 68 65 20 d2 61 76 61 69 |ode of t|he .avai|
|00004030| 6c 61 62 6c 65 d3 20 61 | 6e 64 20 d2 75 73 65 64 |lable. a|nd .used|
|00004040| d3 20 62 75 66 66 65 72 | 20 71 75 65 75 65 73 2e |. buffer| queues.|
|00004050| 20 20 54 68 65 20 73 61 | 6d 70 6c 65 20 69 6e 69 | The sa|mple ini|
|00004060| 74 69 61 6c 69 7a 61 74 | 69 6f 6e 20 72 6f 75 74 |tializat|ion rout|
|00004070| 69 6e 65 20 61 6c 73 6f | 20 70 72 6f 76 69 64 65 |ine also| provide|
|00004080| 73 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 61 62 |s inform|ation ab|
|00004090| 6f 75 74 20 74 68 65 20 | 6c 69 73 74 65 6e 65 72 |out the |listener|
|000040a0| 20 63 6f 64 65 20 77 68 | 69 63 68 20 77 69 6c 6c | code wh|ich will|
|000040b0| 20 65 6e 61 62 6c 65 20 | 74 68 65 20 63 6c 69 65 | enable |the clie|
|000040c0| 6e 74 20 74 6f 20 70 72 | 6f 74 65 63 74 20 74 68 |nt to pr|otect th|
|000040d0| 65 20 6c 69 73 74 65 6e | 65 72 20 63 6f 64 65 20 |e listen|er code |
|000040e0| 66 72 6f 6d 20 62 65 69 | 6e 67 20 70 61 67 65 64 |from bei|ng paged|
|000040f0| 20 6f 75 74 20 77 68 65 | 6e 20 56 69 72 74 75 61 | out whe|n Virtua|
|00004100| 6c 20 4d 65 6d 6f 72 79 | 20 69 73 20 70 72 65 73 |l Memory| is pres|
|00004110| 65 6e 74 2e 20 20 41 20 | 68 69 67 68 2d 6c 65 76 |ent. A |high-lev|
|00004120| 65 6c 20 70 72 6f 63 65 | 64 75 72 65 20 69 73 20 |el proce|dure is |
|00004130| 70 72 6f 76 69 64 65 64 | 20 74 6f 20 64 65 6d 6f |provided| to demo|
|00004140| 6e 73 74 72 61 74 65 20 | 74 68 65 20 69 6e 69 74 |nstrate |the init|
|00004150| 69 61 6c 69 7a 61 74 69 | 6f 6e 20 6f 66 20 74 68 |ializati|on of th|
|00004160| 65 20 6c 69 73 74 65 6e | 65 72 2c 20 74 68 65 20 |e listen|er, the |
|00004170| 75 73 65 20 6f 66 20 74 | 68 65 20 73 6f 63 6b 65 |use of t|he socke|
|00004180| 74 20 6c 69 73 74 65 6e | 65 72 20 61 6e 64 20 61 |t listen|er and a|
|00004190| 20 74 65 63 68 6e 69 71 | 75 65 20 66 6f 72 20 70 | techniq|ue for p|
|000041a0| 72 6f 74 65 63 74 69 6e | 67 20 74 68 65 20 6c 69 |rotectin|g the li|
|000041b0| 73 74 65 6e 65 72 20 63 | 6f 64 65 20 69 6e 20 74 |stener c|ode in t|
|000041c0| 68 65 20 70 72 65 73 65 | 6e 63 65 20 6f 66 20 56 |he prese|nce of V|
|000041d0| 69 72 74 75 61 6c 20 4d | 65 6d 6f 72 79 2e 0d 46 |irtual M|emory..F|
|000041e0| 6f 72 20 75 73 65 72 73 | 20 63 6f 6e 63 65 72 6e |or users| concern|
|000041f0| 65 64 20 77 69 74 68 20 | 74 68 65 20 63 6f 6d 70 |ed with |the comp|
|00004200| 61 74 69 62 69 6c 69 74 | 79 20 62 65 74 77 65 65 |atibilit|y betwee|
|00004210| 6e 20 74 68 69 73 20 73 | 61 6d 70 6c 65 20 73 6f |n this s|ample so|
|00004220| 63 6b 65 74 20 6c 69 73 | 74 65 6e 65 72 20 61 6e |cket lis|tener an|
|00004230| 64 20 50 6f 77 65 72 50 | 43 2c 20 74 68 65 20 50 |d PowerP|C, the P|
|00004240| 6f 77 65 72 50 43 20 6d | 69 78 65 64 20 6d 6f 64 |owerPC m|ixed mod|
|00004250| 65 20 6d 61 67 69 63 20 | 77 69 6c 6c 20 68 61 6e |e magic |will han|
|00004260| 64 6c 65 20 36 38 30 30 | 30 20 41 73 73 65 6d 62 |dle 6800|0 Assemb|
|00004270| 6c 65 72 20 69 6e 73 74 | 72 75 63 74 69 6f 6e 73 |ler inst|ructions|
|00004280| 20 74 72 61 6e 73 70 61 | 72 65 6e 74 6c 79 0d 53 | transpa|rently.S|
|00004290| 6f 63 6b 65 74 20 4c 69 | 73 74 65 6e 65 72 20 52 |ocket Li|stener R|
|000042a0| 65 76 69 65 77 0d 54 68 | 65 20 72 65 61 64 65 72 |eview.Th|e reader|
|000042b0| 20 69 73 20 61 64 76 69 | 73 65 64 20 74 6f 20 72 | is advi|sed to r|
|000042c0| 65 66 65 72 20 74 6f 20 | 49 6e 73 69 64 65 20 4d |efer to |Inside M|
|000042d0| 61 63 69 6e 74 6f 73 68 | 20 56 6f 6c 75 6d 65 20 |acintosh| Volume |
|000042e0| 49 49 2c 20 70 61 67 65 | 73 20 33 32 34 20 74 6f |II, page|s 324 to|
|000042f0| 20 33 33 30 2c 20 66 6f | 72 20 61 20 64 65 73 63 | 330, fo|r a desc|
|00004300| 72 69 70 74 69 6f 6e 20 | 6f 66 20 70 72 6f 74 6f |ription |of proto|
|00004310| 63 6f 6c 20 68 61 6e 64 | 6c 65 72 73 2c 20 73 6f |col hand|lers, so|
|00004320| 63 6b 65 74 20 6c 69 73 | 74 65 6e 65 72 73 2c 20 |cket lis|teners, |
|00004330| 61 6e 64 20 64 61 74 61 | 20 72 65 63 65 70 74 69 |and data| recepti|
|00004340| 6f 6e 20 69 6e 20 74 68 | 65 20 41 70 70 6c 65 54 |on in th|e AppleT|
|00004350| 61 6c 6b 20 4d 61 6e 61 | 67 65 72 20 6f 76 65 72 |alk Mana|ger over|
|00004360| 20 4c 6f 63 61 6c 54 61 | 6c 6b 2e 20 54 68 65 20 | LocalTa|lk. The |
|00004370| 73 61 6d 65 20 61 72 63 | 68 69 74 65 63 74 75 72 |same arc|hitectur|
|00004380| 65 20 61 70 70 6c 69 65 | 73 20 74 6f 20 41 70 70 |e applie|s to App|
|00004390| 6c 65 54 61 6c 6b 20 6f | 6e 20 45 74 68 65 72 6e |leTalk o|n Ethern|
|000043a0| 65 74 20 61 6e 64 20 74 | 6f 6b 65 6e 20 72 69 6e |et and t|oken rin|
|000043b0| 67 2e 20 57 69 74 68 20 | 74 68 65 20 61 64 76 65 |g. With |the adve|
|000043c0| 6e 74 20 6f 66 20 41 70 | 70 6c 65 54 61 6c 6b 20 |nt of Ap|pleTalk |
|000043d0| 50 68 61 73 65 20 32 2c | 20 74 68 65 20 73 69 7a |Phase 2,| the siz|
|000043e0| 65 20 6f 66 20 74 68 65 | 20 52 65 61 64 20 48 65 |e of the| Read He|
|000043f0| 61 64 65 72 20 41 72 65 | 61 20 28 52 48 41 29 20 |ader Are|a (RHA) |
|00004400| 68 61 73 20 62 65 65 6e | 20 65 78 70 61 6e 64 65 |has been| expande|
|00004410| 64 20 74 6f 20 61 63 63 | 6f 6d 6d 6f 64 61 74 65 |d to acc|ommodate|
|00004420| 20 74 68 65 20 6c 6f 6e | 67 20 44 44 50 20 68 65 | the lon|g DDP he|
|00004430| 61 64 65 72 2e 0d 41 66 | 74 65 72 20 65 76 65 72 |ader..Af|ter ever|
|00004440| 79 20 52 65 61 64 50 61 | 63 6b 65 74 20 6f 72 20 |y ReadPa|cket or |
|00004450| 52 65 61 64 52 65 73 74 | 20 63 61 6c 6c 2c 20 74 |ReadRest| call, t|
|00004460| 68 65 20 6c 69 73 74 65 | 6e 65 72 20 63 6f 64 65 |he liste|ner code|
|00004470| 20 6d 75 73 74 20 63 68 | 65 63 6b 20 74 68 65 20 | must ch|eck the |
|00004480| 5a 20 28 5a 65 72 6f 29 | 20 63 6f 6e 64 69 74 69 |Z (Zero)| conditi|
|00004490| 6f 6e 20 63 6f 64 65 20 | 66 6f 72 20 65 72 72 6f |on code |for erro|
|000044a0| 72 73 2e 20 49 66 20 61 | 6e 20 65 72 72 6f 72 20 |rs. If a|n error |
|000044b0| 69 73 20 64 65 74 65 63 | 74 65 64 20 66 72 6f 6d |is detec|ted from|
|000044c0| 20 52 65 61 64 50 61 63 | 6b 65 74 20 2c 20 74 68 | ReadPac|ket , th|
|000044d0| 65 20 63 6f 64 65 20 6d | 75 73 74 20 6e 6f 74 20 |e code m|ust not |
|000044e0| 63 61 6c 6c 20 52 65 61 | 64 52 65 73 74 20 2e 20 |call Rea|dRest . |
|000044f0| 0d 49 74 20 69 73 20 74 | 68 65 20 72 65 73 70 6f |.It is t|he respo|
|00004500| 6e 73 69 62 69 6c 69 74 | 79 20 6f 66 20 74 68 65 |nsibilit|y of the|
|00004510| 20 73 6f 63 6b 65 74 20 | 6c 69 73 74 65 6e 65 72 | socket |listener|
|00004520| 20 63 6f 64 65 20 74 6f | 20 63 68 65 63 6b 20 66 | code to| check f|
|00004530| 6f 72 20 74 68 65 20 65 | 78 69 73 74 65 6e 63 65 |or the e|xistence|
|00004540| 20 6f 66 20 74 68 65 20 | 44 44 50 20 63 68 65 63 | of the |DDP chec|
|00004550| 6b 73 75 6d 2e 20 49 6e | 20 63 6f 6e 74 72 61 73 |ksum. In| contras|
|00004560| 74 20 77 69 74 68 20 74 | 68 65 20 46 72 61 6d 65 |t with t|he Frame|
|00004570| 20 43 68 65 63 6b 20 53 | 65 71 75 65 6e 63 65 20 | Check S|equence |
|00004580| 77 68 69 63 68 20 74 68 | 65 20 68 61 72 64 77 61 |which th|e hardwa|
|00004590| 72 65 20 75 73 65 73 20 | 74 6f 20 76 65 72 69 66 |re uses |to verif|
|000045a0| 79 20 66 72 61 6d 65 2c | 20 74 68 65 20 44 44 50 |y frame,| the DDP|
|000045b0| 20 63 68 65 63 6b 73 75 | 6d 20 69 73 20 69 6d 70 | checksu|m is imp|
|000045c0| 6c 65 6d 65 6e 74 65 64 | 20 69 6e 20 65 78 74 65 |lemented| in exte|
|000045d0| 6e 64 65 64 20 44 44 50 | 20 68 65 61 64 65 72 73 |nded DDP| headers|
|000045e0| 20 74 6f 20 76 65 72 69 | 66 79 20 74 68 61 74 20 | to veri|fy that |
|000045f0| 74 68 65 20 70 61 63 6b | 65 74 20 64 61 74 61 20 |the pack|et data |
|00004600| 69 73 20 6e 6f 74 20 63 | 6f 72 72 75 70 74 65 64 |is not c|orrupted|
|00004610| 20 62 79 20 6d 65 6d 6f | 72 79 20 6f 72 20 64 61 | by memo|ry or da|
|00004620| 74 61 20 62 75 73 20 65 | 72 72 6f 72 73 20 77 69 |ta bus e|rrors wi|
|00004630| 74 68 69 6e 20 72 6f 75 | 74 65 72 73 20 6f 6e 20 |thin rou|ters on |
|00004640| 74 68 65 20 49 6e 74 65 | 72 6e 65 74 2e 20 49 66 |the Inte|rnet. If|
|00004650| 20 74 68 65 20 63 68 65 | 63 6b 73 75 6d 20 68 61 | the che|cksum ha|
|00004660| 73 20 62 65 65 6e 20 65 | 6e 74 65 72 65 64 2c 20 |s been e|ntered, |
|00004670| 74 68 65 6e 20 74 68 65 | 20 73 6f 63 6b 65 74 20 |then the| socket |
|00004680| 6c 69 73 74 65 6e 65 72 | 20 63 6f 64 65 20 6d 75 |listener| code mu|
|00004690| 73 74 20 63 61 6c 63 75 | 6c 61 74 65 20 74 68 65 |st calcu|late the|
|000046a0| 20 63 68 65 63 6b 73 75 | 6d 20 61 66 74 65 72 20 | checksu|m after |
|000046b0| 74 68 65 20 70 61 63 6b | 65 74 20 68 61 73 20 62 |the pack|et has b|
|000046c0| 65 65 6e 20 72 65 61 64 | 20 69 6e 2c 20 61 6e 64 |een read| in, and|
|000046d0| 20 63 6f 6d 70 61 72 65 | 20 74 68 65 20 63 6f 6d | compare| the com|
|000046e0| 70 75 74 65 64 20 76 61 | 6c 75 65 20 77 69 74 68 |puted va|lue with|
|000046f0| 20 74 68 65 20 70 61 73 | 73 65 64 20 63 68 65 63 | the pas|sed chec|
|00004700| 6b 73 75 6d 20 76 61 6c | 75 65 2e 20 54 68 65 20 |ksum val|ue. The |
|00004710| 73 61 6d 70 6c 65 20 6c | 69 73 74 65 6e 65 72 20 |sample l|istener |
|00004720| 63 6f 64 65 20 64 65 6d | 6f 6e 73 74 72 61 74 65 |code dem|onstrate|
|00004730| 73 20 74 68 69 73 20 63 | 68 65 63 6b 20 61 6e 64 |s this c|heck and|
|00004740| 20 63 61 6c 63 75 6c 61 | 74 69 6f 6e 20 6f 66 20 | calcula|tion of |
|00004750| 74 68 65 20 63 68 65 63 | 6b 73 75 6d 2e 20 54 68 |the chec|ksum. Th|
|00004760| 65 20 6c 69 73 74 65 6e | 65 72 20 63 6f 64 65 20 |e listen|er code |
|00004770| 73 65 74 73 20 61 20 66 | 6c 61 67 20 77 68 69 63 |sets a f|lag whic|
|00004780| 68 20 74 68 65 20 70 72 | 6f 67 72 61 6d 20 63 61 |h the pr|ogram ca|
|00004790| 6e 20 63 68 65 63 6b 20 | 74 6f 20 64 65 74 65 72 |n check |to deter|
|000047a0| 6d 69 6e 65 20 77 68 65 | 74 68 65 72 20 74 68 65 |mine whe|ther the|
|000047b0| 20 63 68 65 63 6b 73 75 | 6d 20 6d 61 74 63 68 65 | checksu|m matche|
|000047c0| 64 20 6f 72 20 6e 6f 74 | 2e 0d 54 68 65 20 72 65 |d or not|..The re|
|000047d0| 63 6f 72 64 20 73 74 72 | 75 63 74 75 72 65 20 70 |cord str|ucture p|
|000047e0| 72 65 73 65 6e 74 65 64 | 20 69 6e 20 74 68 69 73 |resented| in this|
|000047f0| 20 73 61 6d 70 6c 65 20 | 72 65 74 75 72 6e 73 20 | sample |returns |
|00004800| 74 68 65 20 44 44 50 20 | 74 79 70 65 2c 20 64 65 |the DDP |type, de|
|00004810| 73 74 69 6e 61 74 69 6f | 6e 20 6e 6f 64 65 20 49 |stinatio|n node I|
|00004820| 44 2c 20 73 6f 75 72 63 | 65 20 61 64 64 72 65 73 |D, sourc|e addres|
|00004830| 73 20 69 6e 20 41 64 64 | 72 42 6c 6f 63 6b 20 66 |s in Add|rBlock f|
|00004840| 6f 72 6d 61 74 2c 20 74 | 68 65 20 68 6f 70 20 63 |ormat, t|he hop c|
|00004850| 6f 75 6e 74 2c 20 74 68 | 65 20 73 69 7a 65 20 6f |ount, th|e size o|
|00004860| 66 20 74 68 65 20 70 61 | 63 6b 65 74 2c 20 61 20 |f the pa|cket, a |
|00004870| 66 6c 61 67 20 74 6f 20 | 69 6e 64 69 63 61 74 65 |flag to |indicate|
|00004880| 20 77 68 65 74 68 65 72 | 20 61 20 63 68 65 63 6b | whether| a check|
|00004890| 73 75 6d 20 65 72 72 6f | 72 20 6f 63 63 75 72 72 |sum erro|r occurr|
|000048a0| 65 64 2c 20 66 6f 6c 6c | 6f 77 65 64 20 62 79 20 |ed, foll|owed by |
|000048b0| 74 68 65 20 61 63 74 75 | 61 6c 20 64 61 74 61 67 |the actu|al datag|
|000048c0| 72 61 6d 2e 20 54 68 65 | 20 72 65 63 6f 72 64 20 |ram. The| record |
|000048d0| 73 74 72 75 63 74 75 72 | 65 20 63 61 6e 20 62 65 |structur|e can be|
|000048e0| 20 65 78 74 65 6e 64 65 | 64 20 74 6f 20 72 65 74 | extende|d to ret|
|000048f0| 75 72 6e 20 61 64 64 69 | 74 69 6f 6e 61 6c 20 69 |urn addi|tional i|
|00004900| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2c 20 73 75 63 68 |nformati|on, such|
|00004910| 20 61 73 20 74 68 65 20 | 74 69 63 6b 20 63 6f 75 | as the |tick cou|
|00004920| 6e 74 20 61 74 20 74 68 | 65 20 74 69 6d 65 20 74 |nt at th|e time t|
|00004930| 68 65 20 73 6f 63 6b 65 | 74 20 68 61 6e 64 6c 65 |he socke|t handle|
|00004940| 72 20 77 61 73 20 63 61 | 6c 6c 65 64 2e 20 20 0d |r was ca|lled. .|
|00004950| 54 69 6d 69 6e 67 20 43 | 6f 6e 73 69 64 65 72 61 |Timing C|onsidera|
|00004960| 74 69 6f 6e 73 20 66 6f | 72 20 4c 6f 63 61 6c 54 |tions fo|r LocalT|
|00004970| 61 6c 6b 0d 49 66 20 4c | 6f 63 61 6c 54 61 6c 6b |alk.If L|ocalTalk|
|00004980| 20 69 73 20 62 65 69 6e | 67 20 75 73 65 64 2c 20 | is bein|g used, |
|00004990| 79 6f 75 72 20 73 6f 63 | 6b 65 74 20 6c 69 73 74 |your soc|ket list|
|000049a0| 65 6e 65 72 20 68 61 73 | 20 6c 65 73 73 20 74 68 |ener has| less th|
|000049b0| 61 6e 20 39 35 20 6d 69 | 63 72 6f 73 65 63 6f 6e |an 95 mi|crosecon|
|000049c0| 64 73 20 28 62 65 73 74 | 20 63 61 73 65 29 20 74 |ds (best| case) t|
|000049d0| 6f 20 72 65 61 64 20 6d | 6f 72 65 20 64 61 74 61 |o read m|ore data|
|000049e0| 20 77 69 74 68 20 61 20 | 52 65 61 64 50 61 63 6b | with a |ReadPack|
|000049f0| 65 74 20 6f 72 20 52 65 | 61 64 52 65 73 74 20 63 |et or Re|adRest c|
|00004a00| 61 6c 6c 2e 20 49 66 20 | 79 6f 75 20 6e 65 65 64 |all. If |you need|
|00004a10| 20 6d 6f 72 65 20 74 69 | 6d 65 2c 20 79 6f 75 20 | more ti|me, you |
|00004a20| 6d 69 67 68 74 20 63 6f | 6e 73 69 64 65 72 20 72 |might co|nsider r|
|00004a30| 65 61 64 69 6e 67 20 61 | 6e 6f 74 68 65 72 20 74 |eading a|nother t|
|00004a40| 68 72 65 65 20 62 79 74 | 65 73 20 69 6e 74 6f 20 |hree byt|es into |
|00004a50| 74 68 65 20 52 48 41 20 | 74 6f 20 62 75 79 20 61 |the RHA |to buy a|
|00004a60| 6e 6f 74 68 65 72 20 39 | 35 20 6d 69 63 72 6f 73 |nother 9|5 micros|
|00004a70| 65 63 6f 6e 64 73 2e 20 | 52 65 6d 65 6d 62 65 72 |econds. |Remember|
|00004a80| 20 74 68 61 74 20 74 68 | 65 20 52 48 41 20 6d 61 | that th|e RHA ma|
|00004a90| 79 20 6f 6e 6c 79 20 68 | 61 76 65 20 65 69 67 68 |y only h|ave eigh|
|00004aa0| 74 20 62 79 74 65 73 20 | 73 74 69 6c 6c 20 61 76 |t bytes |still av|
|00004ab0| 61 69 6c 61 62 6c 65 2e | 0d 52 65 67 69 73 74 65 |ailable.|.Registe|
|00004ac0| 72 20 55 73 61 67 65 0d | 57 68 65 6e 20 74 68 65 |r Usage.|When the|
|00004ad0| 20 73 6f 63 6b 65 74 20 | 6c 69 73 74 65 6e 65 72 | socket |listener|
|00004ae0| 20 69 73 20 63 61 6c 6c | 65 64 2c 20 74 68 65 20 | is call|ed, the |
|00004af0| 72 65 67 69 73 74 65 72 | 73 20 77 69 6c 6c 20 62 |register|s will b|
|00004b00| 65 20 73 65 74 20 75 70 | 20 61 73 20 66 6f 6c 6c |e set up| as foll|
|00004b10| 6f 77 73 3a 0d 20 20 20 | 20 52 65 67 69 73 74 65 |ows:. | Registe|
|00004b20| 72 28 73 29 20 20 20 20 | 20 20 20 43 6f 6e 74 65 |r(s) | Conte|
|00004b30| 6e 74 73 0d 20 20 20 20 | 20 41 30 2d 41 31 20 20 |nts. | A0-A1 |
|00004b40| 20 20 20 20 20 20 20 20 | 53 43 43 20 61 64 64 72 | |SCC addr|
|00004b50| 65 73 73 65 73 20 75 73 | 65 64 20 62 79 20 4d 50 |esses us|ed by MP|
|00004b60| 50 0d 20 20 20 20 20 41 | 32 20 20 20 20 20 20 20 |P. A|2 |
|00004b70| 20 20 20 20 20 20 20 20 | 20 50 6f 69 6e 74 65 72 | | Pointer|
|00004b80| 20 74 6f 20 4d 50 50 d5 | 73 20 6c 6f 63 61 6c 20 | to MPP.|s local |
|00004b90| 76 61 72 69 61 62 6c 65 | 73 0d 20 20 20 20 20 41 |variable|s. A|
|00004ba0| 33 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |3 | |
|00004bb0| 20 50 6f 69 6e 74 65 72 | 20 74 6f 20 6e 65 78 74 | Pointer| to next|
|00004bc0| 20 66 72 65 65 20 62 79 | 74 65 20 69 6e 20 52 48 | free by|te in RH|
|00004bd0| 41 0d 20 20 20 20 20 41 | 34 20 20 20 20 20 20 20 |A. A|4 |
|00004be0| 20 20 20 20 20 20 20 20 | 20 50 6f 69 6e 74 65 72 | | Pointer|
|00004bf0| 20 74 6f 20 52 65 61 64 | 50 61 63 6b 65 74 20 7b | to Read|Packet {|
|00004c00| 4a 53 52 20 28 41 34 29 | 7d 20 61 6e 64 20 52 65 |JSR (A4)|} and Re|
|00004c10| 61 64 52 65 73 74 20 7b | 4a 53 52 20 32 28 41 34 |adRest {|JSR 2(A4|
|00004c20| 29 7d 20 6a 75 6d 70 20 | 74 61 62 6c 65 0d 20 20 |)} jump |table. |
|00004c30| 20 20 20 44 30 20 20 20 | 20 20 20 20 20 20 20 20 | D0 | |
|00004c40| 20 20 20 20 54 68 69 73 | 20 70 61 63 6b 65 74 d5 | This| packet.|
|00004c50| 73 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 73 6f |s destin|ation so|
|00004c60| 63 6b 65 74 20 6e 75 6d | 62 65 72 0d 20 20 20 20 |cket num|ber. |
|00004c70| 20 44 31 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | D1 | |
|00004c80| 20 20 20 4e 75 6d 62 65 | 72 20 6f 66 20 62 79 74 | Numbe|r of byt|
|00004c90| 65 73 20 6c 65 66 74 20 | 74 6f 20 72 65 61 64 20 |es left |to read |
|00004ca0| 69 6e 20 70 61 63 6b 65 | 74 0d a5 20 09 52 65 67 |in packe|t.. .Reg|
|00004cb0| 69 73 74 65 72 73 20 44 | 30 2c 20 44 32 2c 20 61 |isters D|0, D2, a|
|00004cc0| 6e 64 20 44 33 20 63 61 | 6e 20 62 65 20 75 73 65 |nd D3 ca|n be use|
|00004cd0| 64 20 66 72 65 65 6c 79 | 20 74 68 72 6f 75 67 68 |d freely| through|
|00004ce0| 6f 75 74 20 74 68 65 20 | 73 6f 63 6b 65 74 20 6c |out the |socket l|
|00004cf0| 69 73 74 65 6e 65 72 2e | 20 41 36 2c 20 61 6e 64 |istener.| A6, and|
|00004d00| 20 44 34 20 74 6f 20 44 | 37 20 6d 75 73 74 20 62 | D4 to D|7 must b|
|00004d10| 65 20 70 72 65 73 65 72 | 76 65 64 2e 0d a5 20 09 |e preser|ved... .|
|00004d20| 46 72 6f 6d 20 65 6e 74 | 72 79 20 74 6f 20 73 6f |From ent|ry to so|
|00004d30| 63 6b 65 74 20 6c 69 73 | 74 65 6e 65 72 20 75 6e |cket lis|tener un|
|00004d40| 74 69 6c 20 52 65 61 64 | 52 65 73 74 20 69 73 20 |til Read|Rest is |
|00004d50| 63 61 6c 6c 65 64 3a 0d | 09 09 54 68 65 20 41 35 |called:.|..The A5|
|00004d60| 20 72 65 67 69 73 74 65 | 72 20 63 61 6e 20 62 65 | registe|r can be|
|00004d70| 20 75 73 65 64 2e 0d 09 | 09 52 65 67 69 73 74 65 | used...|.Registe|
|00004d80| 72 73 20 41 30 2d 41 32 | 2c 20 41 34 2c 20 61 6e |rs A0-A2|, A4, an|
|00004d90| 64 20 44 31 20 6d 75 73 | 74 20 62 65 20 70 72 65 |d D1 mus|t be pre|
|00004da0| 73 65 72 76 65 64 2e 0d | a5 09 46 72 6f 6d 20 52 |served..|..From R|
|00004db0| 65 61 64 52 65 73 74 20 | 75 6e 74 69 6c 20 65 78 |eadRest |until ex|
|00004dc0| 69 74 20 66 72 6f 6d 20 | 73 6f 63 6b 65 74 20 6c |it from |socket l|
|00004dd0| 69 73 74 65 6e 65 72 3a | 0d 09 09 54 68 65 20 41 |istener:|...The A|
|00004de0| 35 20 72 65 67 69 73 74 | 65 72 20 6d 75 73 74 20 |5 regist|er must |
|00004df0| 62 65 20 70 72 65 73 65 | 72 76 65 64 2e 0d 09 09 |be prese|rved....|
|00004e00| 52 65 67 69 73 74 65 72 | 73 20 41 30 2d 41 33 20 |Register|s A0-A3 |
|00004e10| 61 6e 64 20 44 30 2d 44 | 33 20 61 72 65 20 66 72 |and D0-D|3 are fr|
|00004e20| 65 65 20 74 6f 20 75 73 | 65 2e 0d 59 6f 75 20 73 |ee to us|e..You s|
|00004e30| 68 6f 75 6c 64 20 61 73 | 73 75 6d 65 20 6f 6e 6c |hould as|sume onl|
|00004e40| 79 20 65 69 67 68 74 20 | 62 79 74 65 73 20 61 72 |y eight |bytes ar|
|00004e50| 65 20 73 74 69 6c 6c 20 | 61 76 61 69 6c 61 62 6c |e still |availabl|
|00004e60| 65 20 69 6e 20 74 68 65 | 20 52 48 41 20 66 6f 72 |e in the| RHA for|
|00004e70| 20 79 6f 75 72 20 75 73 | 65 2e 20 54 68 65 20 52 | your us|e. The R|
|00004e80| 48 41 20 77 69 6c 6c 20 | 63 6f 6e 74 61 69 6e 20 |HA will |contain |
|00004e90| 6f 6e 65 20 6f 66 20 74 | 68 65 20 66 6f 6c 6c 6f |one of t|he follo|
|00004ea0| 77 69 6e 67 3a 0d 53 6f | 63 6b 65 74 20 4c 69 73 |wing:.So|cket Lis|
|00004eb0| 74 65 6e 65 72 20 4f 76 | 65 72 76 69 65 77 0d 54 |tener Ov|erview.T|
|00004ec0| 68 65 20 73 61 6d 70 6c | 65 20 73 6f 63 6b 65 74 |he sampl|e socket|
|00004ed0| 20 6c 69 73 74 65 6e 65 | 72 20 75 74 69 6c 69 7a | listene|r utiliz|
|00004ee0| 65 73 20 74 77 6f 20 73 | 74 61 6e 64 61 72 64 20 |es two s|tandard |
|00004ef0| 4f 70 65 72 61 74 69 6e | 67 20 53 79 73 74 65 6d |Operatin|g System|
|00004f00| 20 28 4f 53 29 20 71 75 | 65 75 65 73 20 28 73 65 | (OS) qu|eues (se|
|00004f10| 65 20 49 6e 73 69 64 65 | 20 4d 61 63 69 6e 74 6f |e Inside| Macinto|
|00004f20| 73 68 20 49 49 2d 33 37 | 32 29 2c 20 61 20 66 72 |sh II-37|2), a fr|
|00004f30| 65 65 20 71 75 65 75 65 | 20 6f 66 20 61 76 61 69 |ee queue| of avai|
|00004f40| 6c 61 62 6c 65 20 62 75 | 66 66 65 72 73 20 77 68 |lable bu|ffers wh|
|00004f50| 69 63 68 20 74 68 65 20 | 6c 69 73 74 65 6e 65 72 |ich the |listener|
|00004f60| 20 75 73 65 73 20 74 6f | 20 66 69 6c 6c 20 77 69 | uses to| fill wi|
|00004f70| 74 68 20 69 6e 63 6f 6d | 69 6e 67 20 64 61 74 61 |th incom|ing data|
|00004f80| 67 72 61 6d 73 2e 20 54 | 68 65 20 73 65 63 6f 6e |grams. T|he secon|
|00004f90| 64 20 6c 69 6e 6b 65 64 | 20 6c 69 73 74 20 69 73 |d linked| list is|
|00004fa0| 20 61 20 75 73 65 64 20 | 71 75 65 75 65 20 6f 66 | a used |queue of|
|00004fb0| 20 62 75 66 66 65 72 73 | 20 77 68 69 63 68 20 74 | buffers| which t|
|00004fc0| 68 65 20 6c 69 73 74 65 | 6e 65 72 20 68 61 73 20 |he liste|ner has |
|00004fd0| 70 72 6f 63 65 73 73 65 | 64 2c 20 62 75 74 20 68 |processe|d, but h|
|00004fe0| 61 76 65 20 6e 6f 74 20 | 62 65 65 6e 20 70 72 6f |ave not |been pro|
|00004ff0| 63 65 73 73 65 64 20 62 | 79 20 74 68 65 20 6c 69 |cessed b|y the li|
|00005000| 73 74 65 6e 65 72 20 63 | 6c 69 65 6e 74 2e 20 54 |stener c|lient. T|
|00005010| 68 65 20 53 4c 5f 49 6e | 69 74 53 6b 74 4c 69 73 |he SL_In|itSktLis|
|00005020| 74 65 6e 65 72 20 72 6f | 75 74 69 6e 65 20 69 73 |tener ro|utine is|
|00005030| 20 63 61 6c 6c 65 64 20 | 74 6f 20 70 61 73 73 20 | called |to pass |
|00005040| 74 68 65 20 6c 69 73 74 | 65 6e 65 72 20 74 68 65 |the list|ener the|
|00005050| 20 70 6f 69 6e 74 65 72 | 73 20 74 6f 20 74 68 65 | pointer|s to the|
|00005060| 20 74 77 6f 20 4f 53 20 | 71 75 65 75 65 73 2e 20 | two OS |queues. |
|00005070| 20 49 6e 20 61 64 64 69 | 74 69 6f 6e 2c 20 74 68 | In addi|tion, th|
|00005080| 65 20 53 4c 5f 49 6e 69 | 74 53 6b 74 4c 69 73 74 |e SL_Ini|tSktList|
|00005090| 65 6e 65 72 20 20 72 6f | 75 74 69 6e 65 20 72 65 |ener ro|utine re|
|000050a0| 74 75 72 6e 73 20 74 68 | 65 20 61 64 64 72 65 73 |turns th|e addres|
|000050b0| 73 20 61 6e 64 20 6c 65 | 6e 67 74 68 20 6f 66 20 |s and le|ngth of |
|000050c0| 74 68 65 20 73 6f 63 6b | 65 74 20 6c 69 73 74 65 |the sock|et liste|
|000050d0| 6e 65 72 20 63 6f 64 65 | 2e 20 20 41 20 63 6c 69 |ner code|. A cli|
|000050e0| 65 6e 74 20 70 72 6f 63 | 65 73 73 20 63 61 6e 20 |ent proc|ess can |
|000050f0| 74 68 65 6e 20 63 68 65 | 63 6b 20 66 6f 72 20 74 |then che|ck for t|
|00005100| 68 65 20 70 72 65 73 65 | 6e 63 65 20 6f 66 20 56 |he prese|nce of V|
|00005110| 69 72 74 75 61 6c 20 4d | 65 6d 6f 72 79 2c 20 61 |irtual M|emory, a|
|00005120| 6e 64 20 63 61 6c 6c 20 | 48 6f 6c 64 4d 65 6d 6f |nd call |HoldMemo|
|00005130| 72 79 20 74 6f 20 70 72 | 6f 74 65 63 74 20 74 68 |ry to pr|otect th|
|00005140| 65 20 73 6f 63 6b 65 74 | 20 6c 69 73 74 65 6e 65 |e socket| listene|
|00005150| 72 20 63 6f 64 65 20 66 | 72 6f 6d 20 62 65 69 6e |r code f|rom bein|
|00005160| 67 20 70 61 67 65 64 20 | 6f 75 74 2e 0d 57 68 65 |g paged |out..Whe|
|00005170| 6e 20 74 68 65 20 6c 69 | 73 74 65 6e 65 72 20 69 |n the li|stener i|
|00005180| 73 20 63 61 6c 6c 65 64 | 20 74 6f 20 70 72 6f 63 |s called| to proc|
|00005190| 65 73 73 20 61 20 70 61 | 63 6b 65 74 2c 20 74 68 |ess a pa|cket, th|
|000051a0| 65 20 6c 69 73 74 65 6e | 65 72 20 63 68 65 63 6b |e listen|er check|
|000051b0| 73 20 77 68 65 74 68 65 | 72 20 74 68 65 72 65 20 |s whethe|r there |
|000051c0| 69 73 20 61 6e 20 61 76 | 61 69 6c 61 62 6c 65 20 |is an av|ailable |
|000051d0| 62 75 66 66 65 72 20 72 | 65 63 6f 72 64 20 69 6e |buffer r|ecord in|
|000051e0| 20 74 68 65 20 66 72 65 | 65 20 71 75 65 75 65 20 | the fre|e queue |
|000051f0| 62 79 20 63 68 65 63 6b | 69 6e 67 20 74 68 61 74 |by check|ing that|
|00005200| 20 71 48 65 61 64 20 65 | 6c 65 6d 65 6e 74 20 6f | qHead e|lement o|
|00005210| 66 20 74 68 65 20 66 72 | 65 65 20 71 75 65 75 65 |f the fr|ee queue|
|00005220| 20 69 73 20 6e 6f 74 20 | 6e 69 6c 2e 20 49 66 20 | is not |nil. If |
|00005230| 73 6f 2c 20 74 68 65 6e | 20 74 68 65 20 6c 69 73 |so, then| the lis|
|00005240| 74 65 6e 65 72 20 73 65 | 74 73 20 72 65 67 69 73 |tener se|ts regis|
|00005250| 74 65 72 20 41 33 20 74 | 6f 20 70 6f 69 6e 74 20 |ter A3 t|o point |
|00005260| 74 6f 20 74 68 65 20 62 | 75 66 66 65 72 5f 64 61 |to the b|uffer_da|
|00005270| 74 61 20 65 6c 65 6d 65 | 6e 74 20 6f 66 20 74 68 |ta eleme|nt of th|
|00005280| 65 20 72 65 63 6f 72 64 | 20 61 6e 64 20 63 61 6c |e record| and cal|
|00005290| 6c 73 20 74 68 65 20 52 | 65 61 64 52 65 73 74 20 |ls the R|eadRest |
|000052a0| 72 6f 75 74 69 6e 65 2e | 20 49 66 20 74 68 65 72 |routine.| If ther|
|000052b0| 65 20 69 73 20 6e 6f 20 | 61 76 61 69 6c 61 62 6c |e is no |availabl|
|000052c0| 65 20 62 75 66 66 65 72 | 20 72 65 63 6f 72 64 2c |e buffer| record,|
|000052d0| 20 74 68 65 20 70 61 63 | 6b 65 74 20 69 73 20 69 | the pac|ket is i|
|000052e0| 67 6e 6f 72 65 64 20 62 | 79 20 63 61 6c 6c 69 6e |gnored b|y callin|
|000052f0| 67 20 52 65 61 64 52 65 | 73 74 20 77 69 74 68 20 |g ReadRe|st with |
|00005300| 61 20 62 75 66 66 65 72 | 20 73 69 7a 65 20 76 61 |a buffer| size va|
|00005310| 6c 75 65 20 6f 66 20 30 | 2e 20 4d 61 79 62 65 20 |lue of 0|. Maybe |
|00005320| 74 68 65 20 6e 65 78 74 | 20 74 69 6d 65 20 61 20 |the next| time a |
|00005330| 70 61 63 6b 65 74 20 69 | 73 20 68 61 6e 64 6c 65 |packet i|s handle|
|00005340| 64 2c 20 61 20 62 75 66 | 66 65 72 20 77 69 6c 6c |d, a buf|fer will|
|00005350| 20 62 65 20 61 76 61 69 | 6c 61 62 6c 65 2e 20 49 | be avai|lable. I|
|00005360| 66 20 61 6e 20 65 72 72 | 6f 72 20 6f 63 63 75 72 |f an err|or occur|
|00005370| 73 20 64 75 72 69 6e 67 | 20 74 68 65 20 52 65 61 |s during| the Rea|
|00005380| 64 52 65 73 74 20 66 75 | 6e 63 74 69 6f 6e 2c 20 |dRest fu|nction, |
|00005390| 74 68 65 6e 20 74 68 65 | 20 6c 69 73 74 65 6e 65 |then the| listene|
|000053a0| 72 20 73 69 6d 70 6c 79 | 20 72 65 74 75 72 6e 73 |r simply| returns|
|000053b0| 20 74 6f 20 74 68 65 20 | 63 61 6c 6c 65 72 2e 0d | to the |caller..|
|000053c0| 49 66 20 74 68 65 20 70 | 61 63 6b 65 74 20 69 73 |If the p|acket is|
|000053d0| 20 73 75 63 63 65 73 73 | 66 75 6c 6c 79 20 72 65 | success|fully re|
|000053e0| 61 64 2c 20 74 68 65 20 | 6c 69 73 74 65 6e 65 72 |ad, the |listener|
|000053f0| 20 70 72 6f 63 65 73 73 | 65 73 20 74 68 65 20 68 | process|es the h|
|00005400| 65 61 64 65 72 20 69 6e | 66 6f 72 6d 61 74 69 6f |eader in|formatio|
|00005410| 6e 2e 20 54 68 65 20 68 | 65 61 64 65 72 20 69 6e |n. The h|eader in|
|00005420| 66 6f 72 6d 61 74 69 6f | 6e 20 68 61 73 20 62 65 |formatio|n has be|
|00005430| 65 6e 20 73 74 6f 72 65 | 64 20 62 79 20 74 68 65 |en store|d by the|
|00005440| 20 68 61 72 64 77 61 72 | 65 20 64 72 69 76 65 72 | hardwar|e driver|
|00005450| 20 69 6e 20 74 68 65 20 | 4d 50 50 20 6c 6f 63 61 | in the |MPP loca|
|00005460| 6c 20 76 61 72 69 61 62 | 6c 65 20 73 70 61 63 65 |l variab|le space|
|00005470| 20 70 6f 69 6e 74 65 64 | 20 74 6f 20 69 6e 20 72 | pointed| to in r|
|00005480| 65 67 69 73 74 65 72 20 | 41 32 2e 20 54 68 65 20 |egister |A2. The |
|00005490| 6c 69 73 74 65 6e 65 72 | 20 63 6f 64 65 20 66 69 |listener| code fi|
|000054a0| 6c 6c 73 20 69 6e 20 74 | 68 65 20 68 6f 70 20 63 |lls in t|he hop c|
|000054b0| 6f 75 6e 74 20 20 66 69 | 65 6c 64 20 6f 66 20 74 |ount fi|eld of t|
|000054c0| 68 65 20 70 61 63 6b 65 | 74 20 62 75 66 66 65 72 |he packe|t buffer|
|000054d0| 20 72 65 63 6f 72 64 20 | 61 6e 64 20 64 65 74 65 | record |and dete|
|000054e0| 72 6d 69 6e 65 73 20 74 | 68 65 20 70 61 63 6b 65 |rmines t|he packe|
|000054f0| 74 20 6c 65 6e 67 74 68 | 2e 20 54 68 65 20 6c 69 |t length|. The li|
|00005500| 73 74 65 6e 65 72 20 74 | 68 65 6e 20 66 69 67 75 |stener t|hen figu|
|00005510| 72 65 73 20 6f 75 74 20 | 77 68 65 74 68 65 72 20 |res out |whether |
|00005520| 69 74 20 69 73 20 64 65 | 61 6c 69 6e 67 20 77 69 |it is de|aling wi|
|00005530| 74 68 20 61 20 73 68 6f | 72 74 20 6f 72 20 65 78 |th a sho|rt or ex|
|00005540| 74 65 6e 64 65 64 20 44 | 44 50 20 68 65 61 64 65 |tended D|DP heade|
|00005550| 72 20 61 6e 64 20 66 69 | 6c 6c 73 20 69 6e 20 74 |r and fi|lls in t|
|00005560| 68 65 20 72 65 6d 61 69 | 6e 69 6e 67 20 66 69 65 |he remai|ning fie|
|00005570| 6c 64 73 20 6f 66 20 74 | 68 65 20 70 61 63 6b 65 |lds of t|he packe|
|00005580| 74 20 62 75 66 66 65 72 | 2e 20 41 20 63 68 65 63 |t buffer|. A chec|
|00005590| 6b 20 69 73 20 6d 61 64 | 65 20 74 6f 20 64 65 74 |k is mad|e to det|
|000055a0| 65 72 6d 69 6e 65 20 77 | 68 65 74 68 65 72 20 74 |ermine w|hether t|
|000055b0| 68 65 20 63 68 65 63 6b | 73 75 6d 20 66 69 65 6c |he check|sum fiel|
|000055c0| 64 20 6f 66 20 74 68 65 | 20 44 44 50 20 68 65 61 |d of the| DDP hea|
|000055d0| 64 65 72 20 69 73 20 6e | 6f 6e 2d 7a 65 72 6f 2e |der is n|on-zero.|
|000055e0| 20 49 66 20 74 68 65 20 | 66 69 65 6c 64 20 69 73 | If the |field is|
|000055f0| 20 6e 6f 6e 2d 7a 65 72 | 6f 2c 20 74 68 65 20 76 | non-zer|o, the v|
|00005600| 61 6c 75 65 20 69 73 20 | 70 61 73 73 65 64 20 74 |alue is |passed t|
|00005610| 6f 20 74 68 65 20 53 4c | 5f 44 6f 43 68 6b 53 75 |o the SL|_DoChkSu|
|00005620| 6d 20 66 75 6e 63 74 69 | 6f 6e 20 74 6f 20 76 65 |m functi|on to ve|
|00005630| 72 69 66 79 20 74 68 61 | 74 20 74 68 65 20 72 65 |rify tha|t the re|
|00005640| 73 75 6c 74 69 6e 67 20 | 63 68 65 63 6b 73 75 6d |sulting |checksum|
|00005650| 20 69 73 20 7a 65 72 6f | 2e 20 49 66 20 74 68 65 | is zero|. If the|
|00005660| 20 72 65 73 75 6c 74 69 | 6e 67 20 63 68 65 63 6b | resulti|ng check|
|00005670| 73 75 6d 20 69 73 20 6e | 6f 6e 2d 7a 65 72 6f 2c |sum is n|on-zero,|
|00005680| 20 74 68 65 20 62 75 66 | 66 65 72 5f 43 68 65 63 | the buf|fer_Chec|
|00005690| 6b 53 75 6d 20 66 69 65 | 6c 64 20 69 73 20 73 65 |kSum fie|ld is se|
|000056a0| 74 20 74 6f 20 63 6b 53 | 75 6d 45 72 72 2c 20 2d |t to ckS|umErr, -|
|000056b0| 33 31 30 33 2c 20 6f 74 | 68 65 72 77 69 73 65 20 |3103, ot|herwise |
|000056c0| 74 68 65 20 66 69 65 6c | 64 20 69 73 20 73 65 74 |the fiel|d is set|
|000056d0| 20 74 6f 20 6e 6f 45 72 | 72 2e 20 46 69 6e 61 6c | to noEr|r. Final|
|000056e0| 6c 79 2c 20 74 68 65 20 | 6c 69 73 74 65 6e 65 72 |ly, the |listener|
|000056f0| 20 45 6e 71 75 65 75 65 | 73 20 74 68 65 20 70 61 | Enqueue|s the pa|
|00005700| 63 6b 65 74 20 62 75 66 | 66 65 72 20 69 6e 74 6f |cket buf|fer into|
|00005710| 20 74 68 65 20 75 73 65 | 64 20 71 75 65 75 65 20 | the use|d queue |
|00005720| 61 6e 64 20 44 65 71 75 | 65 75 65 73 20 20 69 74 |and Dequ|eues it|
|00005730| 20 66 72 6f 6d 20 74 68 | 65 20 66 72 65 65 20 71 | from th|e free q|
|00005740| 75 65 75 65 20 62 65 66 | 6f 72 65 20 72 65 74 75 |ueue bef|ore retu|
|00005750| 72 6e 69 6e 67 20 74 6f | 20 74 68 65 20 63 61 6c |rning to| the cal|
|00005760| 6c 65 72 2e 0d 54 68 65 | 20 63 61 6c 6c 69 6e 67 |ler..The| calling|
|00005770| 20 70 72 6f 67 72 61 6d | 20 70 65 72 69 6f 64 69 | program| periodi|
|00005780| 63 61 6c 6c 79 20 63 68 | 65 63 6b 73 20 74 68 65 |cally ch|ecks the|
|00005790| 20 51 48 65 61 64 20 65 | 6c 65 6d 65 6e 74 20 6f | QHead e|lement o|
|000057a0| 66 20 74 68 65 20 75 73 | 65 64 20 71 75 65 75 65 |f the us|ed queue|
|000057b0| 2e 20 57 68 65 6e 20 51 | 48 65 61 64 20 69 73 20 |. When Q|Head is |
|000057c0| 6e 6f 20 6c 6f 6e 67 65 | 72 20 6e 69 6c 2c 20 61 |no longe|r nil, a|
|000057d0| 20 70 61 63 6b 65 74 20 | 69 73 20 61 76 61 69 6c | packet |is avail|
|000057e0| 61 62 6c 65 20 66 6f 72 | 20 70 72 6f 63 65 73 73 |able for| process|
|000057f0| 69 6e 67 2e 20 54 68 65 | 20 70 72 6f 67 72 61 6d |ing. The| program|
|00005800| 20 70 72 6f 63 65 73 73 | 65 73 20 74 68 65 20 70 | process|es the p|
|00005810| 61 63 6b 65 74 20 62 75 | 66 66 65 72 2e 20 20 57 |acket bu|ffer. W|
|00005820| 68 65 6e 20 66 69 6e 69 | 73 68 65 64 2c 20 74 68 |hen fini|shed, th|
|00005830| 65 20 70 61 63 6b 65 74 | 20 62 75 66 66 65 72 20 |e packet| buffer |
|00005840| 69 73 20 45 6e 71 75 65 | 75 65 64 20 69 6e 74 6f |is Enque|ued into|
|00005850| 20 74 68 65 20 66 72 65 | 65 20 71 75 65 75 65 20 | the fre|e queue |
|00005860| 61 6e 64 20 44 65 71 75 | 65 75 65 64 20 66 72 6f |and Dequ|eued fro|
|00005870| 6d 20 74 68 65 20 75 73 | 65 64 20 71 75 65 75 65 |m the us|ed queue|
|00005880| 2e 20 54 68 65 20 70 72 | 6f 67 72 61 6d 20 6d 69 |. The pr|ogram mi|
|00005890| 67 68 74 20 74 68 65 6e | 20 63 68 65 63 6b 20 66 |ght then| check f|
|000058a0| 6f 72 20 61 64 64 69 74 | 69 6f 6e 61 6c 20 70 61 |or addit|ional pa|
|000058b0| 63 6b 65 74 73 20 69 6e | 20 74 68 65 20 75 73 65 |ckets in| the use|
|000058c0| 64 20 71 75 65 75 65 20 | 61 6e 64 20 70 72 6f 63 |d queue |and proc|
|000058d0| 65 73 73 20 74 68 65 6d | 20 69 6e 20 74 68 65 20 |ess them| in the |
|000058e0| 73 61 6d 65 20 6d 61 6e | 6e 65 72 2e 0d 54 68 65 |same man|ner..The|
|000058f0| 20 70 72 6f 67 72 61 6d | 20 6e 65 65 64 73 20 74 | program| needs t|
|00005900| 6f 20 64 65 66 69 6e 65 | 20 61 20 73 75 66 66 69 |o define| a suffi|
|00005910| 63 69 65 6e 74 20 6e 75 | 6d 62 65 72 20 6f 66 20 |cient nu|mber of |
|00005920| 70 61 63 6b 65 74 20 62 | 75 66 66 65 72 73 20 73 |packet b|uffers s|
|00005930| 6f 20 74 68 61 74 20 74 | 68 65 20 6c 69 73 74 65 |o that t|he liste|
|00005940| 6e 65 72 20 68 61 73 20 | 62 75 66 66 65 72 73 20 |ner has |buffers |
|00005950| 61 76 61 69 6c 61 62 6c | 65 20 69 6e 20 74 68 65 |availabl|e in the|
|00005960| 20 66 72 65 65 20 71 75 | 65 75 65 20 62 65 74 77 | free qu|eue betw|
|00005970| 65 65 6e 20 74 69 6d 65 | 73 20 77 68 65 6e 20 74 |een time|s when t|
|00005980| 68 65 20 70 72 6f 67 72 | 61 6d 20 63 68 65 63 6b |he progr|am check|
|00005990| 73 20 74 68 65 20 75 73 | 65 64 20 71 75 65 75 65 |s the us|ed queue|
|000059a0| 20 61 6e 64 20 70 72 6f | 63 65 73 73 65 73 20 69 | and pro|cesses i|
|000059b0| 6e 63 6f 6d 69 6e 67 20 | 70 61 63 6b 65 74 73 2e |ncoming |packets.|
|000059c0| 0d 53 6f 63 6b 65 74 20 | 4c 69 73 74 65 6e 65 72 |.Socket |Listener|
|000059d0| 20 41 73 73 65 6d 62 6c | 65 72 20 43 6f 64 65 0d | Assembl|er Code.|
|000059e0| 3b 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |;_______|________|
|000059f0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005a00| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005a10| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005a20| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 0d 3b 20 53 6f 63 |________|__.; Soc|
|00005a30| 6b 65 74 20 4c 69 73 74 | 65 6e 65 72 20 53 61 6d |ket List|ener Sam|
|00005a40| 70 6c 65 0d 3b 0d 3b 20 | 33 2f 39 32 20 4a 69 6d |ple.;.; |3/92 Jim|
|00005a50| 20 4c 75 74 68 65 72 2c | 20 20 41 70 70 6c 65 20 | Luther,| Apple |
|00005a60| 44 54 53 0d 3b 0d 3b 20 | a9 31 39 39 32 20 41 70 |DTS.;.; |.1992 Ap|
|00005a70| 70 6c 65 20 43 6f 6d 70 | 75 74 65 72 2c 20 49 6e |ple Comp|uter, In|
|00005a80| 63 2e 0d 3b 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |c..;____|________|
|00005a90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005aa0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005ab0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005ac0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 20 20 |________|_____. |
|00005ad0| 20 20 49 4e 43 4c 55 44 | 45 20 20 20 20 27 51 75 | INCLUD|E 'Qu|
|00005ae0| 69 63 6b 45 71 75 2e 61 | 27 0d 20 20 20 20 49 4e |ickEqu.a|'. IN|
|00005af0| 43 4c 55 44 45 20 20 20 | 20 27 54 6f 6f 6c 45 71 |CLUDE | 'ToolEq|
|00005b00| 75 2e 61 27 0d 20 20 20 | 20 49 4e 43 4c 55 44 45 |u.a'. | INCLUDE|
|00005b10| 20 20 20 20 27 53 79 73 | 45 71 75 2e 61 27 0d 20 | 'Sys|Equ.a'. |
|00005b20| 20 20 20 49 4e 43 4c 55 | 44 45 20 20 20 20 27 54 | INCLU|DE 'T|
|00005b30| 72 61 70 73 2e 61 27 0d | 20 20 20 20 49 4e 43 4c |raps.a'.| INCL|
|00005b40| 55 44 45 20 20 20 20 27 | 41 54 61 6c 6b 45 71 75 |UDE '|ATalkEqu|
|00005b50| 2e 61 27 0d 20 20 20 20 | 49 4e 43 4c 55 44 45 20 |.a'. |INCLUDE |
|00005b60| 20 20 20 27 53 79 73 45 | 72 72 2e 61 27 0d 3b 0d | 'SysE|rr.a'.;.|
|00005b70| 3b 0d 3b 20 52 65 63 6f | 72 64 20 54 79 70 65 73 |;.; Reco|rd Types|
|00005b80| 0d 3b 0d 3b 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |.;.;____|________|
|00005b90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005ba0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005bb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005bc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 0d 3b 51 |________|_____.;Q|
|00005bd0| 48 64 72 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |Hdr | |
|00005be0| 20 20 20 20 20 52 45 43 | 4f 52 44 20 20 20 20 30 | REC|ORD 0|
|00005bf0| 0d 3b 71 46 6c 61 67 73 | 20 20 20 20 20 20 20 20 |.;qFlags| |
|00005c00| 20 20 20 20 20 20 20 20 | 44 53 2e 57 20 20 20 20 | |DS.W |
|00005c10| 20 20 31 0d 3b 71 48 65 | 61 64 20 20 20 20 20 20 | 1.;qHe|ad |
|00005c20| 20 20 20 20 20 20 20 20 | 20 20 20 44 53 2e 4c 20 | | DS.L |
|00005c30| 20 20 20 20 20 31 0d 3b | 71 54 61 69 6c 20 20 20 | 1.;|qTail |
|00005c40| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 44 53 | | DS|
|00005c50| 2e 4c 20 20 20 20 20 20 | 31 0d 3b 20 20 20 20 20 |.L |1.; |
|00005c60| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005c70| 20 45 4e 44 52 0d 50 61 | 63 6b 65 74 42 75 66 66 | ENDR.Pa|cketBuff|
|00005c80| 65 72 20 20 20 20 20 20 | 20 20 20 20 52 45 43 4f |er | RECO|
|00005c90| 52 44 20 20 20 20 30 0d | 71 4c 69 6e 6b 20 20 20 |RD 0.|qLink |
|00005ca0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 44 53 | | DS|
|00005cb0| 2e 4c 20 20 20 20 20 20 | 31 0d 71 54 79 70 65 20 |.L |1.qType |
|00005cc0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005cd0| 44 53 2e 57 20 20 20 20 | 20 20 31 0d 62 75 66 66 |DS.W | 1.buff|
|00005ce0| 65 72 5f 54 79 70 65 20 | 20 20 20 20 20 20 20 20 |er_Type | |
|00005cf0| 20 20 44 53 2e 57 20 20 | 20 20 20 20 31 20 20 20 | DS.W | 1 |
|00005d00| 20 20 20 20 20 20 20 20 | 20 3b 20 44 44 50 20 54 | | ; DDP T|
|00005d10| 79 70 65 0d 62 75 66 66 | 65 72 5f 4e 6f 64 65 49 |ype.buff|er_NodeI|
|00005d20| 44 20 20 20 20 20 20 20 | 20 20 44 53 2e 57 20 20 |D | DS.W |
|00005d30| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00005d40| 20 3b 20 44 65 73 74 69 | 6e 61 74 69 6f 6e 20 6e | ; Desti|nation n|
|00005d50| 6f 64 65 0d 62 75 66 66 | 65 72 5f 41 64 64 72 65 |ode.buff|er_Addre|
|00005d60| 73 73 20 20 20 20 20 20 | 20 20 44 53 2e 4c 20 20 |ss | DS.L |
|00005d70| 20 20 20 20 31 20 20 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00005d80| 20 3b 20 53 6f 75 72 63 | 65 20 61 64 64 72 65 73 | ; Sourc|e addres|
|00005d90| 73 20 69 6e 20 41 64 64 | 72 42 6c 6f 63 6b 20 66 |s in Add|rBlock f|
|00005da0| 6f 72 6d 61 74 0d 62 75 | 66 66 65 72 5f 48 6f 70 |ormat.bu|ffer_Hop|
|00005db0| 73 20 20 20 20 20 20 20 | 20 20 20 20 44 53 2e 57 |s | DS.W|
|00005dc0| 20 20 20 20 20 20 31 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00005dd0| 20 20 20 3b 20 48 6f 70 | 20 63 6f 75 6e 74 0d 62 | ; Hop| count.b|
|00005de0| 75 66 66 65 72 5f 41 63 | 74 43 6f 75 6e 74 20 20 |uffer_Ac|tCount |
|00005df0| 20 20 20 20 20 44 53 2e | 57 20 20 20 20 20 20 31 | DS.|W 1|
|00005e00| 20 20 20 20 20 20 20 20 | 20 20 20 20 3b 20 6c 65 | | ; le|
|00005e10| 6e 67 74 68 20 6f 66 20 | 44 44 50 20 64 61 74 61 |ngth of |DDP data|
|00005e20| 67 72 61 6d 0d 62 75 66 | 66 65 72 5f 43 68 65 63 |gram.buf|fer_Chec|
|00005e30| 6b 53 75 6d 20 20 20 20 | 20 20 20 44 53 2e 57 20 |kSum | DS.W |
|00005e40| 20 20 20 20 20 31 20 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00005e50| 20 20 3b 20 43 68 6b 73 | 75 6d 20 65 72 72 6f 72 | ; Chks|um error|
|00005e60| 20 72 65 74 75 72 6e 65 | 64 20 68 65 72 65 20 28 | returne|d here (|
|00005e70| 63 6b 73 75 6d 45 72 72 | 20 6f 72 20 6e 6f 45 72 |cksumErr| or noEr|
|00005e80| 72 29 0d 62 75 66 66 65 | 72 5f 54 69 63 6b 73 20 |r).buffe|r_Ticks |
|00005e90| 20 20 20 20 20 20 20 20 | 20 44 53 2e 4c 20 20 20 | | DS.L |
|00005ea0| 20 20 20 31 20 20 20 20 | 20 20 20 20 20 20 20 20 | 1 | |
|00005eb0| 3b 20 54 69 63 6b 43 6f | 75 6e 74 20 77 68 65 6e |; TickCo|unt when|
|00005ec0| 20 68 61 6e 64 6c 65 72 | 20 63 61 6c 6c 65 64 0d | handler| called.|
|00005ed0| 62 75 66 66 65 72 5f 44 | 61 74 61 20 20 20 20 20 |buffer_D|ata |
|00005ee0| 20 20 20 20 20 20 44 53 | 2e 42 20 20 20 20 20 20 | DS|.B |
|00005ef0| 64 64 70 4d 61 78 44 61 | 74 61 20 20 20 3b 20 74 |ddpMaxDa|ta ; t|
|00005f00| 68 65 20 44 44 50 20 64 | 61 74 61 67 72 61 6d 0d |he DDP d|atagram.|
|00005f10| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00005f20| 20 20 20 20 20 20 45 4e | 44 52 0d 3b 5f 5f 5f 5f | EN|DR.;____|
|00005f30| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f40| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f50| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f60| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005f70| 5f 5f 5f 5f 5f 0d 3b 0d | 3b 20 4c 6f 63 61 6c 20 |_____.;.|; Local |
|00005f80| 56 61 72 69 61 62 6c 65 | 73 0d 3b 0d 3b 5f 5f 5f |Variable|s.;.;___|
|00005f90| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005fa0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005fb0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005fc0| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00005fd0| 5f 5f 5f 5f 5f 5f 0d 53 | 4c 5f 4c 6f 63 61 6c 73 |______.S|L_Locals|
|00005fe0| 20 20 20 20 50 52 4f 43 | 0d 20 20 20 20 20 20 20 | PROC|. |
|00005ff0| 20 45 4e 54 52 59 20 66 | 72 65 65 5f 71 75 65 75 | ENTRY f|ree_queu|
|00006000| 65 2c 75 73 65 64 5f 71 | 75 65 75 65 2c 63 75 72 |e,used_q|ueue,cur|
|00006010| 72 65 6e 74 5f 71 65 6c | 65 6d 0d 66 72 65 65 5f |rent_qel|em.free_|
|00006020| 71 75 65 75 65 20 20 20 | 20 20 20 20 20 44 43 2e |queue | DC.|
|00006030| 4c 20 20 20 20 30 20 20 | 20 20 20 20 3b 20 70 6f |L 0 | ; po|
|00006040| 69 6e 74 65 72 20 74 6f | 20 66 72 65 65 51 20 51 |inter to| freeQ Q|
|00006050| 48 64 72 20 2d 20 69 6e | 69 74 27 64 20 62 79 20 |Hdr - in|it'd by |
|00006060| 49 6e 69 74 53 6b 74 4c | 69 73 74 65 6e 65 72 0d |InitSktL|istener.|
|00006070| 75 73 65 64 5f 71 75 65 | 75 65 20 20 20 20 20 20 |used_que|ue |
|00006080| 20 20 44 43 2e 4c 20 20 | 20 20 30 20 20 20 20 20 | DC.L | 0 |
|00006090| 20 3b 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 75 73 | ; point|er to us|
|000060a0| 65 64 51 20 51 48 64 72 | 20 2d 20 69 6e 69 74 27 |edQ QHdr| - init'|
|000060b0| 64 20 62 79 20 49 6e 69 | 74 53 6b 74 4c 69 73 74 |d by Ini|tSktList|
|000060c0| 65 6e 65 72 0d 63 75 72 | 72 65 6e 74 5f 71 65 6c |ener.cur|rent_qel|
|000060d0| 65 6d 20 20 20 20 20 44 | 43 2e 4c 20 20 20 20 30 |em D|C.L 0|
|000060e0| 20 20 20 20 20 20 3b 20 | 70 6f 69 6e 74 65 72 20 | ; |pointer |
|000060f0| 74 6f 20 63 75 72 72 65 | 6e 74 20 50 61 63 6b 65 |to curre|nt Packe|
|00006100| 74 42 75 66 66 65 72 20 | 72 65 63 6f 72 64 0d 20 |tBuffer |record. |
|00006110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006130| 3b 20 69 6e 69 74 69 61 | 6c 69 7a 65 64 20 62 79 |; initia|lized by|
|00006140| 20 49 6e 69 74 53 6b 74 | 4c 69 73 74 65 6e 65 72 | InitSkt|Listener|
|00006150| 2c 20 74 68 65 6e 0d 20 | 20 20 20 20 20 20 20 20 |, then. | |
|00006160| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00006170| 20 20 20 20 20 20 20 20 | 3b 20 73 65 74 20 62 79 | |; set by|
|00006180| 20 73 6f 63 6b 65 74 20 | 6c 69 73 74 65 6e 65 72 | socket |listener|
|00006190| 20 61 66 74 65 72 20 65 | 76 65 72 79 20 70 61 63 | after e|very pac|
|000061a0| 6b 65 74 2e 0d 20 20 20 | 20 20 20 20 20 20 20 20 |ket.. | |
|000061b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000061c0| 20 20 20 20 20 20 3b 20 | 4e 49 4c 20 69 66 20 6e | ; |NIL if n|
|000061d0| 6f 20 62 75 66 66 65 72 | 20 69 73 20 61 76 61 69 |o buffer| is avai|
|000061e0| 6c 61 62 6c 65 2e 0d 20 | 20 20 20 45 4e 44 50 0d |lable.. | ENDP.|
|000061f0| 3b 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |;_______|________|
|00006200| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006210| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006220| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006230| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 0d 3b 0d 3b 20 53 |________|__.;.; S|
|00006240| 4c 5f 44 6f 43 68 6b 73 | 75 6d 20 2d 20 61 63 63 |L_DoChks|um - acc|
|00006250| 75 6d 75 6c 61 74 65 20 | 6f 6e 67 6f 69 6e 67 20 |umulate |ongoing |
|00006260| 63 68 65 63 6b 73 75 6d | 20 28 66 72 6f 6d 20 49 |checksum| (from I|
|00006270| 6e 73 69 64 65 20 4d 61 | 63 69 6e 74 6f 73 68 29 |nside Ma|cintosh)|
|00006280| 0d 3b 0d 3b 20 20 20 20 | 49 6e 70 75 74 3a 0d 3b |.;.; |Input:.;|
|00006290| 20 20 20 20 20 44 31 20 | 28 77 6f 72 64 29 20 3d | D1 |(word) =|
|000062a0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 62 79 74 65 73 | number |of bytes|
|000062b0| 20 74 6f 20 63 68 65 63 | 6b 73 75 6d 0d 3b 20 20 | to chec|ksum.; |
|000062c0| 20 20 20 44 33 20 28 77 | 6f 72 64 29 20 3d 20 63 | D3 (w|ord) = c|
|000062d0| 75 72 72 65 6e 74 20 63 | 68 65 63 6b 73 75 6d 0d |urrent c|hecksum.|
|000062e0| 3b 20 20 20 20 20 41 31 | 20 70 6f 69 6e 74 73 20 |; A1| points |
|000062f0| 74 6f 20 74 68 65 20 62 | 79 74 65 73 20 74 6f 20 |to the b|ytes to |
|00006300| 63 68 65 63 6b 73 75 6d | 0d 3b 0d 3b 20 20 20 20 |checksum|.;.; |
|00006310| 52 65 74 75 72 6e 3a 0d | 3b 20 20 20 20 20 44 30 |Return:.|; D0|
|00006320| 20 69 73 20 6d 6f 64 69 | 66 69 65 64 0d 3b 20 20 | is modi|fied.; |
|00006330| 20 20 20 44 33 20 28 77 | 6f 72 64 29 20 3d 20 61 | D3 (w|ord) = a|
|00006340| 63 63 75 6d 75 6c 61 74 | 65 64 20 63 68 65 63 6b |ccumulat|ed check|
|00006350| 73 75 6d 0d 3b 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |sum.;___|________|
|00006360| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006370| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006380| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 5f 5f |________|________|
|00006390| 5f 5f 5f 5f 5f 5f 5f 5f | 5f 5f 5f 5f 5f 5f 0d 53 |________|______.S|
|000063a0| 4c 5f 44 6f 43 68 6b 73 | 75 6d 20 20 20 20 50 52 |L_DoChks|um PR|
|000063b0| 4f 43 0d 20 20 20 20 43 | 4c 52 2e 57 20 20 20 20 |OC. C|LR.W |
|000063c0| 20 20 44 30 20 20 20 20 | 20 20 20 20 20 20 20 20 | D0 | |
|000063d0| 20 20 20 20 20 20 20 20 | 3b 20 43 6c 65 61 72 20 | |; Clear |
|000063e0| 68 69 67 68 20 62 79 74 | 65 0d 20 20 20 20 53 55 |high byt|e. SU|
|000063f0| 42 51 2e 57 20 20 20 20 | 20 23 31 2c 44 31 20 20 |BQ.W | #1,D1 |
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.